mirror of https://github.com/ElemeFE/element
				
				
				
			
		
			
				
	
	
		
			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');
 |