فهرست منبع

More scaffolding and strucure

sbkwgh 8 سال پیش
والد
کامیت
93aa159342
2فایلهای تغییر یافته به همراه16 افزوده شده و 0 حذف شده
  1. 4 0
      src/main.js
  2. 12 0
      src/store/mutations.js

+ 4 - 0
src/main.js

@@ -1,10 +1,13 @@
 import Vue from 'vue'
 import VueRouter from 'vue-router'
+import Vuex from 'vuex'
 
 import App from './App'
+import store from './store/index'
 import Index from './components/routes/Index'
 
 Vue.use(VueRouter)
+Vue.use(Vuex)
 
 const router = new VueRouter({
 	routes: [
@@ -16,6 +19,7 @@ const router = new VueRouter({
 new Vue({
 	el: '#app',
 	template: '<App/>',
+	store,
 	components: { App },
 	router
 })

+ 12 - 0
src/store/mutations.js

@@ -0,0 +1,12 @@
+import Vuex from 'vuex'
+
+import * as actions from './actions'
+import * as getters from './getters'
+
+export default new Vuex.Store({
+	actions,
+	getters,
+	modules: {
+
+	}
+})