main.js 528 B

1234567891011121314151617181920212223242526
  1. import Vue from 'vue'
  2. import App from './App.vue'
  3. import router from './router'
  4. import ElementUI from 'element-ui';
  5. import 'element-ui/lib/theme-chalk/index.css';
  6. const config = require('./config.js')
  7. //引入初始化样式
  8. import './assets/css/base.css'
  9. Vue.use(ElementUI);
  10. // Vue.mixin({
  11. // })
  12. Vue.prototype.$homePageUrl = location.origin + location.pathname
  13. Vue.prototype.$eventBus = new Vue({})
  14. Vue.config.productionTip = false
  15. console.log(config.version);
  16. new Vue({
  17. router,
  18. render: h => h(App)
  19. }).$mount('#app')