main.js 530 B

123456789101112131415161718192021
  1. import Vue from 'vue'
  2. import App from './App'
  3. import store from './store' // store
  4. import plugins from './plugins' // plugins
  5. import './permission' // permission
  6. Vue.use(plugins)
  7. Vue.config.productionTip = false
  8. Vue.prototype.$store = store
  9. App.mpType = 'app'
  10. // 全局注册
  11. import pageHead from './components/page-head/page-head.vue'
  12. import customHead from './components/custom-head/custom-head.vue'
  13. Vue.component('page-head', pageHead)
  14. Vue.component('custom-head', customHead)
  15. const app = new Vue({
  16. ...App
  17. })
  18. app.$mount()