From 81b36c60f29aa8357ceec7dbcfc1940ccaecc5b0 Mon Sep 17 00:00:00 2001 From: skytek_xinliang Date: Mon, 30 Mar 2026 16:18:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=99=BB=E5=85=A5?= =?UTF-8?q?=E9=A0=81=E9=9D=A2=E6=9C=AC=E5=9C=B0=E5=AD=98=E5=84=B2=E9=8D=B5?= =?UTF-8?q?=E5=90=8D=E5=8F=8A=E6=97=A5=E8=AA=8C=E8=BC=B8=E5=87=BA=EF=BC=8C?= =?UTF-8?q?=E7=B0=A1=E5=8C=96=20i18n=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + eslint.config.js | 1 + src/views/Login.vue | 6 +++--- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 91afc94..1dbb336 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ dist .eslintcache .stylelintcache +output/playwright/ .env .env.* diff --git a/eslint.config.js b/eslint.config.js index 6f06c52..7d5bf04 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -13,5 +13,6 @@ export default vuetify({ 'unicorn/prefer-query-selector': 'off', 'unicorn/no-array-sort':'off', 'unicorn/prefer-logical-operator-over-ternary': 'off', + '@typescript-eslint/consistent-type-imports': 'off' } }) diff --git a/src/views/Login.vue b/src/views/Login.vue index 70c71d8..6ea2b00 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -116,7 +116,7 @@ const refreshTitle = computed(() => t('pages.login.refreshTitle')) const forgotPasswordHref = ref('/forgot-password') const forgotPasswordTarget = ref(undefined) // 記住帳號的 localStorage key -const rememberStorageKey = ref('playground.login.remember.username') +const rememberStorageKey = ref('login.remember.username') // 驗證碼 API const captchaValue = ref('') @@ -183,12 +183,12 @@ const toolbar = computed(() => ({ // 事件處理 function handleForgotPassword(e: MouseEvent) { - console.log('Playground Forgot Password Click:', e) + console.log('Forgot Password Click:', e) } function handleChangeLocale(nextLocale: string) { locale.value = nextLocale - localStorage.setItem('playground.locale', nextLocale) + localStorage.setItem('locale', nextLocale) } async function handleCaptchaRefresh() {