bugfix: 验证码输入状态

feat: 接收语言参数
This commit is contained in:
2026-02-09 11:51:14 +08:00
parent af3161fc86
commit 7665bf59da
9 changed files with 1791 additions and 1879 deletions

View File

@@ -1,7 +1,18 @@
import router from './index'
router.beforeEach((to, from, next) => {
next()
const path = to.path
const list = {
zh: 'CHINESE_SIMPLIFIED',
en: 'ENGLISH'
}
if (path.startsWith('/zh') || (to.params.lang === 'zh')) {
localStorage.setItem('loginLanguage', 'CHINESE_SIMPLIFIED')
} else if (path.startsWith('/en') || (to.params.lang === 'en')) {
localStorage.setItem('loginLanguage', 'ENGLISH')
}
next()
})
router.afterEach(() => {