|
@@ -15,6 +15,10 @@ import { dataBaseInterface } from '@/api/api.js';
|
|
import { mixins } from "@/mixins";
|
|
import { mixins } from "@/mixins";
|
|
import VueI18n from 'vue-i18n';
|
|
import VueI18n from 'vue-i18n';
|
|
import messages from './lang/index';
|
|
import messages from './lang/index';
|
|
|
|
+import langEN from 'element-ui/lib/locale/lang/en'
|
|
|
|
+import langZH from 'element-ui/lib/locale/lang/zh-CN'
|
|
|
|
+import locale from 'element-ui/lib/locale'
|
|
|
|
+
|
|
Vue.mixin(mixins);
|
|
Vue.mixin(mixins);
|
|
Vue.use(VueI18n);
|
|
Vue.use(VueI18n);
|
|
const i18n = new VueI18n({
|
|
const i18n = new VueI18n({
|
|
@@ -27,6 +31,9 @@ Vue.use(ElementUI);
|
|
Vue.use(VueRouter);
|
|
Vue.use(VueRouter);
|
|
Vue.use(Vuex);
|
|
Vue.use(Vuex);
|
|
|
|
|
|
|
|
+// 设置element语言
|
|
|
|
+locale.use(localStorage.getItem('i18n')=='zh' ? langZH : langEN)
|
|
|
|
+
|
|
import{endCalc,optionTimeCalc,init}from'@/utils/TimeOnPage.js';
|
|
import{endCalc,optionTimeCalc,init}from'@/utils/TimeOnPage.js';
|
|
|
|
|
|
|
|
|