main.js 574 B

1234567891011121314151617181920212223242526
  1. import Vue from 'vue'
  2. import ElementUI from 'element-ui'
  3. import 'element-ui/lib/theme-chalk/index.css';
  4. import App from './App.vue'
  5. import router from './router/index.js'
  6. import store from './store/index.js'
  7. import api from './api/index'
  8. // if (!process.env.IS_WEB) app.use(require('vue-electron'))
  9. // app.electron = app.config.globalProperties.$electron = electron
  10. Vue.prototype.$api = api
  11. Vue.config.productionTip = false
  12. Vue.use(ElementUI);
  13. new Vue({
  14. components: { App },
  15. router,
  16. store,
  17. ElementUI,
  18. created() {
  19. },
  20. template: "<App/>",
  21. }).$mount("#app");