main.js 452 B

123456789101112131415161718192021222324252627
  1. import Vue from 'vue'
  2. import App from './App.vue'
  3. import router from './router'
  4. import store from './store'
  5. import Vcomp from './components/index'
  6. import '@/assets/styles/base.scss'
  7. import '@/assets/styles/common.scss'
  8. Vue.use(Vcomp)
  9. Vue.config.productionTip = false
  10. router.beforeEach((to, from, next) => {
  11. if (to.meta.title) {
  12. document.title = to.meta.title;
  13. }
  14. next();
  15. })
  16. new Vue({
  17. router,
  18. store,
  19. render: h => h(App),
  20. }).$mount('#app')