|
|
@@ -6,12 +6,12 @@ import router from './router/router';
|
|
|
import './permission'; // 权限
|
|
|
import './error'; // 日志
|
|
|
import store from './store';
|
|
|
-import { loadStyle } from './util/util'
|
|
|
+import {loadStyle} from './util/util'
|
|
|
import * as urls from '@/config/env';
|
|
|
import Element from 'element-ui';
|
|
|
import {
|
|
|
- iconfontUrl,
|
|
|
- iconfontVersion
|
|
|
+ iconfontUrl,
|
|
|
+ iconfontVersion
|
|
|
} from '@/config/env';
|
|
|
import i18n from './lang' // Internationalization
|
|
|
import './styles/common.scss';
|
|
|
@@ -21,28 +21,29 @@ import basicContainer from './components/basic-container/main'
|
|
|
Vue.use(router)
|
|
|
Vue.use(VueAxios, axios)
|
|
|
Vue.use(Element, {
|
|
|
- i18n: (key, value) => i18n.t(key, value)
|
|
|
+ i18n: (key, value) => i18n.t(key, value)
|
|
|
})
|
|
|
Vue.use(window.AVUE, {
|
|
|
- i18n: (key, value) => i18n.t(key, value)
|
|
|
+ size: 'small',
|
|
|
+ i18n: (key, value) => i18n.t(key, value)
|
|
|
})
|
|
|
//注册全局容器
|
|
|
Vue.component('basicContainer', basicContainer)
|
|
|
// 加载相关url地址
|
|
|
Object.keys(urls).forEach(key => {
|
|
|
- Vue.prototype[key] = urls[key];
|
|
|
+ Vue.prototype[key] = urls[key];
|
|
|
})
|
|
|
|
|
|
// 动态加载阿里云字体库
|
|
|
iconfontVersion.forEach(ele => {
|
|
|
- loadStyle(iconfontUrl.replace('$key', ele));
|
|
|
+ loadStyle(iconfontUrl.replace('$key', ele));
|
|
|
})
|
|
|
|
|
|
Vue.config.productionTip = false;
|
|
|
|
|
|
new Vue({
|
|
|
- router,
|
|
|
- store,
|
|
|
- i18n,
|
|
|
- render: h => h(App)
|
|
|
-}).$mount('#app')
|
|
|
+ router,
|
|
|
+ store,
|
|
|
+ i18n,
|
|
|
+ render: h => h(App)
|
|
|
+}).$mount('#app')
|