main.js 737 B

123456789101112131415161718192021222324252627282930
  1. import Vue from 'vue'
  2. import App from './App.vue'
  3. import router from './router/index'
  4. import store from './store/index'
  5. import login from './common/login'
  6. import ElementUI from 'element-ui'
  7. import 'element-ui/lib/theme-chalk/index.css'
  8. import auth from './common/auth'
  9. import { injectGlobal } from './common/'
  10. import './style/reset.less'
  11. import './style/common.less'
  12. import './assets/font/iconfont.css'
  13. import './style/index.less'
  14. import './filters/filter'
  15. //全局注入
  16. Vue.use(ElementUI)
  17. injectGlobal()
  18. window.globalVue = "";
  19. auth(router);
  20. Vue.config.productionTip = false
  21. const globalVue = new Vue({
  22. router,
  23. store,
  24. render: h => h(App)
  25. }).$mount('#app')
  26. window.globalVue = globalVue;
  27. window.ydStorage && ydStorage.postItem();