This commit is contained in:
Peter Stuifzand 2018-08-26 12:55:45 +02:00
parent 9277c1450d
commit 03a6ebf8a6
3 changed files with 20 additions and 1 deletions

View File

@ -9,7 +9,8 @@
},
"dependencies": {
"vue": "^2.5.17",
"vue-router": "^3.0.1"
"vue-router": "^3.0.1",
"vuex": "^3.0.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.0.0-rc.10",

View File

@ -1,10 +1,12 @@
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
Vue.config.productionTip = false
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')

16
src/store.js Normal file
View File

@ -0,0 +1,16 @@
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
},
mutations: {
},
actions: {
}
})