mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-02 20:28:52 +08:00
20 lines
417 B
JavaScript
20 lines
417 B
JavaScript
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);
|
|
|
|
const router = new VueRouter({
|
|
base: __dirname,
|
|
routes: configRouter
|
|
});
|
|
|
|
new Vue({ // eslint-disable-line
|
|
render: h => h(entry),
|
|
router
|
|
}).$mount('#app');
|