i18n引入

This commit is contained in:
2020-10-19 15:24:55 +08:00
parent 448a305abe
commit 8c6ab14103
4 changed files with 43 additions and 0 deletions

View File

@@ -10,9 +10,12 @@ import { defineComponent } from 'vue';
import router from './router';
import store from './store';
import { getValue } from './utils/common';
import { provideI18n } from "@/utils/i18n"
import i18ninit from "@/i18n/init"
export default defineComponent({
setup(){
provideI18n(i18ninit);
if(getValue('token')){
store.commit("login", true)
store.dispatch("setUserInfo");