src/main.js
@@ -7,7 +7,9 @@ import './error'; // 日志 import './cache';//页面缓存 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 { @@ -55,10 +57,14 @@ }); Vue.config.productionTip = false; // Window.onresize 事件 动态调整窗口 import "@/store/onresize"; new Vue({ let myVue = new Vue({ router, store, i18n, render: h => h(App) }).$mount('#app'); export default myVue