Merge pull request #593 from xzz2021/master

fix: 修复store里title不更新,Enter登录重复触发
master
Archer 9 months ago committed by GitHub
commit 3a476232ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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()
}
}

Loading…
Cancel
Save