From 319cdd182065021b6f994e6af77accd0ca099326 Mon Sep 17 00:00:00 2001 From: xzz2021 Date: Thu, 13 Feb 2025 09:44:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Denv=E6=9B=B4?= =?UTF-8?q?=E6=96=B0title=E5=90=8E,store=E4=B8=8D=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/app.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/store/modules/app.ts b/src/store/modules/app.ts index 781d808..9a295fb 100644 --- a/src/store/modules/app.ts +++ b/src/store/modules/app.ts @@ -328,6 +328,8 @@ export const useAppStore = defineStore('app', { valueLight: 'light' }) isDark.value = this.getIsDark + const newTitle = import.meta.env.VITE_APP_TITLE + newTitle !== this.getTitle && this.setTitle(newTitle) } }, persist: true From 97e7660e2107cd1d087d50fdbb534db72266f02b Mon Sep 17 00:00:00 2001 From: xzz2021 Date: Thu, 13 Feb 2025 09:46:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DEnter=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=87=8D=E5=A4=8D=E8=A7=A6=E5=8F=91,=E9=98=BB?= =?UTF-8?q?=E6=AD=A2=E4=BA=8B=E4=BB=B6=E5=86=92=E6=B3=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Login/components/LoginForm.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/Login/components/LoginForm.vue b/src/views/Login/components/LoginForm.vue index bcf2efd..6d39b8e 100644 --- a/src/views/Login/components/LoginForm.vue +++ b/src/views/Login/components/LoginForm.vue @@ -76,6 +76,7 @@ const schema = reactive([ // 按下enter键触发登录 onKeydown: (_e: any) => { if (_e.key === 'Enter') { + _e.stopPropagation() // 阻止事件冒泡 signIn() } }