feat: 不再缓存语言,不带/cn就用英文

This commit is contained in:
2026-04-22 15:39:57 +08:00
parent ca8764ad7a
commit 81adcb4bc4

View File

@@ -8,7 +8,7 @@ router.beforeEach((to, from, next) => {
}
if (path.startsWith('/cn') || (to.params.lang === 'cn')) {
localStorage.setItem('loginLanguage', 'CHINESE_SIMPLIFIED')
} else if (path.startsWith('/en') || (to.params.lang === 'en')) {
} else {
localStorage.setItem('loginLanguage', 'ENGLISH')
}