diff --git a/src/App.vue b/src/App.vue index 8aa74b9..02b5729 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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 diff --git a/src/components/LiveItem.vue b/src/components/LiveItem.vue index b63d46b..53babdf 100644 --- a/src/components/LiveItem.vue +++ b/src/components/LiveItem.vue @@ -36,7 +36,7 @@