i18n引入
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user