fix: Locales
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run

This commit is contained in:
zhangzhanwei 2025-07-14 20:17:14 +08:00 committed by zhanweizhang7
parent 2490e85bc5
commit a7fd1ac650
2 changed files with 1 additions and 6 deletions

View File

@ -8626,5 +8626,5 @@ msgstr "添加個人系統API KEY"
msgid "Generate related documents"
msgstr "生成相關文檔"
msgid "Generate related documents"
msgid "Modify application access token"
msgstr "修改應用程序訪問權杖"

View File

@ -192,12 +192,7 @@ const loginHandle = () => {
login.asyncLogin(loginForm.value, loading).then(() => {
locale.value = localStorage.getItem('MaxKB-locale') || getBrowserLang() || 'en-US'
localStorage.setItem('workspace_id', 'default')
if (hasPermission([RoleConst.ADMIN, RoleConst.EXTENDS_ADMIN], 'OR')) {
router.push({name: 'user'})
} else {
router.push({name: 'home'})
}
})
}
})