parent
							
								
									d98a96856c
								
							
						
					
					
						commit
						c316cebfb5
					
				
				 3 changed files with 21 additions and 1 deletions
			
			
		| @ -1,9 +1,12 @@ | |||||||
| import Vue from 'vue' | import Vue from 'vue' | ||||||
| import App from './App.vue' | import App from './App.vue' | ||||||
|  | import store from "@/store"; | ||||||
| 
 | 
 | ||||||
| Vue.config.productionTip = false | Vue.config.productionTip = false | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| new Vue({ | new Vue({ | ||||||
|   render: h => h(App), |     el: '#app', | ||||||
|  |     render: h => h(App), | ||||||
|  |     store | ||||||
| }).$mount('#app') | }).$mount('#app') | ||||||
|  | |||||||
| @ -0,0 +1,5 @@ | |||||||
|  | const getters = { | ||||||
|  |     routes: state => state.routes | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | export default getters | ||||||
| @ -0,0 +1,12 @@ | |||||||
|  | import Vue from 'vue' | ||||||
|  | import Vuex from 'vuex' | ||||||
|  | import getters from "@/store/getters"; | ||||||
|  | 
 | ||||||
|  | Vue.use(Vuex) | ||||||
|  | 
 | ||||||
|  | const store = new Vuex.Store({ | ||||||
|  |     modules: {}, | ||||||
|  |     getters | ||||||
|  | }) | ||||||
|  | 
 | ||||||
|  | export default store | ||||||
					Loading…
					
					
				
		Reference in new issue