21 lines
		
	
	
		
			458 B
		
	
	
	
		
			JavaScript
		
	
	
	
		
		
			
		
	
	
			21 lines
		
	
	
		
			458 B
		
	
	
	
		
			JavaScript
		
	
	
	
| 
								 | 
							
								import Vue from "vue";
							 | 
						|||
| 
								 | 
							
								import App from "./App.vue";
							 | 
						|||
| 
								 | 
							
								import router from "./router";
							 | 
						|||
| 
								 | 
							
								import store from "./store";
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								// 全局组件注册
							 | 
						|||
| 
								 | 
							
								import "@/components/index.js";
							 | 
						|||
| 
								 | 
							
								// 先引入element组件,再引入css自定义主题才能生效
							 | 
						|||
| 
								 | 
							
								import "@/plugins/element";
							 | 
						|||
| 
								 | 
							
								// 样式加载
							 | 
						|||
| 
								 | 
							
								import "@/assets/css/index.scss";
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								// 全局事件总线(bus)
							 | 
						|||
| 
								 | 
							
								Vue.prototype.$bus = new Vue({});
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								new Vue({
							 | 
						|||
| 
								 | 
							
								  router,
							 | 
						|||
| 
								 | 
							
								  store,
							 | 
						|||
| 
								 | 
							
								  render: (h) => h(App)
							 | 
						|||
| 
								 | 
							
								}).$mount("#app");
							 |