| 12345678910111213141516171819202122232425262728293031323334 |
- // The Vue build version to load with the `import` command
- // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
- import Vue from 'vue'
- import FastClick from 'fastclick'
- import { sync } from 'vuex-router-sync'
- import App from './App'
- import store from './libraries/store'
- import router from './libraries/router'
- import plugins from './libraries/plugins'
- import ElementUI from 'element-ui';
- import 'element-ui/lib/theme-chalk/index.css';
- Vue.use(plugins)
- Vue.use(ElementUI);
- sync(store, router, { moduleName: 'route' })
- FastClick.attach(document.body)
- Vue.config.productionTip = false
- /* eslint-disable no-new */
- // new Vue({
- // router,
- // render: h => h(App)
- // }).$mount('#app-box')
- const app = new Vue({
- name: 'root',
- store: store,
- router: router,
- render: h => h(App)
- })
- app.$mount('#app-box')
|