|
@@ -1,22 +1,32 @@
|
|
import Vue from 'vue'
|
|
import Vue from 'vue'
|
|
|
|
+import VueI18n from 'vue-i18n'
|
|
import App from './App'
|
|
import App from './App'
|
|
import apis from './configs/http';
|
|
import apis from './configs/http';
|
|
import store from './store';
|
|
import store from './store';
|
|
import env from '@/configs/env';
|
|
import env from '@/configs/env';
|
|
|
|
+import zh from '@/common/lang/zh';
|
|
|
|
+import en from '@/common/lang/en';
|
|
import mainStatistics from '@/pages/Charts/mainStatistics';
|
|
import mainStatistics from '@/pages/Charts/mainStatistics';
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
+Vue.use(VueI18n)
|
|
Vue.config.productionTip = !!env.isProduction;
|
|
Vue.config.productionTip = !!env.isProduction;
|
|
|
|
+const i18n = new VueI18n({
|
|
|
|
+ locale: 'zh-CN', // 默认选择的语言
|
|
|
|
+ messages: {
|
|
|
|
+ 'zh-CN': zh, // 中文语言包
|
|
|
|
+ 'en-US': en // 英文语言包
|
|
|
|
+ }
|
|
|
|
+});
|
|
|
|
|
|
App.mpType = 'app'
|
|
App.mpType = 'app'
|
|
|
|
|
|
// Vue.prototype.serverurl="http://127.0.0.1:8090";
|
|
// Vue.prototype.serverurl="http://127.0.0.1:8090";
|
|
Vue.prototype.serverurl="https://app.sunzee.com.cn/ShenzeeServer";
|
|
Vue.prototype.serverurl="https://app.sunzee.com.cn/ShenzeeServer";
|
|
-
|
|
|
|
Vue.prototype.$store = store;
|
|
Vue.prototype.$store = store;
|
|
-
|
|
|
|
|
|
+Vue.prototype._i18n = i18n;
|
|
const app = new Vue({
|
|
const app = new Vue({
|
|
|
|
+ i18n,
|
|
store,
|
|
store,
|
|
...App,
|
|
...App,
|
|
});
|
|
});
|