2016-07-27 06:15:02 +00:00
|
|
|
import Vue from 'vue';
|
|
|
|
import entry from './app';
|
|
|
|
import VueRouter from 'vue-router';
|
|
|
|
import configRouter from './route.config';
|
|
|
|
import Element from 'main/index.js';
|
|
|
|
import 'packages/theme-default/src/index.css';
|
|
|
|
|
|
|
|
Vue.use(Element);
|
|
|
|
Vue.use(VueRouter);
|
|
|
|
|
2016-07-27 09:05:28 +00:00
|
|
|
const router = new VueRouter({
|
|
|
|
base: __dirname,
|
|
|
|
routes: configRouter
|
2016-07-27 06:15:02 +00:00
|
|
|
});
|
|
|
|
|
2016-07-27 09:05:28 +00:00
|
|
|
new Vue({ // eslint-disable-line
|
|
|
|
render: h => h(entry),
|
|
|
|
router
|
|
|
|
}).$mount('#app');
|