main.js 490 B

123456789101112131415161718192021222324
  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. //引入初始化样式
  7. import './assets/css/base.css'
  8. Vue.use(ElementUI);
  9. // Vue.mixin({
  10. // })
  11. // 不能通过location去判断
  12. Vue.prototype.$homePageUrl = 'http://192.168.0.81:8081/main'
  13. Vue.prototype.$eventBus = new Vue({})
  14. Vue.config.productionTip = false
  15. new Vue({
  16. router,
  17. render: h => h(App)
  18. }).$mount('#app')