Merge pull request #593 from xzz2021/master
fix: 修复store里title不更新,Enter登录重复触发
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -76,6 +76,7 @@ const schema = reactive<FormSchema[]>([
|
||||
// 按下enter键触发登录
|
||||
onKeydown: (_e: any) => {
|
||||
if (_e.key === 'Enter') {
|
||||
_e.stopPropagation() // 阻止事件冒泡
|
||||
signIn()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user