添加了区号和修复多语言
This commit is contained in:
@@ -21,6 +21,7 @@ export default defineComponent({
|
||||
setup(){
|
||||
console.log(i18ninit)
|
||||
const len = provideI18n(i18ninit);
|
||||
len.locale.value = !getValue("Lanvuage") ? 'zh' : getValue("Lanvuage");
|
||||
if(getValue('token')){
|
||||
store.commit("login", true)
|
||||
store.dispatch("setUserInfo");
|
||||
@@ -29,7 +30,6 @@ export default defineComponent({
|
||||
console.log('ip')
|
||||
store.dispatch("getip");
|
||||
store.commit('setWlan')
|
||||
len.locale.value = !getValue("Lanvuage") ? 'zh' : getValue("Lanvuage");
|
||||
router.push("/")
|
||||
}
|
||||
const zh = zhCN
|
||||
|
||||
Reference in New Issue
Block a user