diff --git a/src/main.js b/src/main.js index 77c7a47ca..303022197 100644 --- a/src/main.js +++ b/src/main.js @@ -11,16 +11,18 @@ import '@/styles/index.scss'; // global css import LangStorage from '@/utils/lang'; import App from './App'; +import VueI18n from 'vue-i18n'; import store from './store'; import router from './router'; -import Theme from '@/jmap/theme/factory'; import '@/icons'; // icon import '@/permission'; // permission control import '@/scripts/GlobalPlugin'; import '@/directives'; +import messages from '@/i18n/index'; Vue.use(ElementUI); +Vue.use(VueI18n); Vue.config.productionTip = false; @@ -33,5 +35,7 @@ new Vue({ el: '#app', router, store, + i18n, render: h => h(App) }); +