setup vuex

This commit is contained in:
busti 2019-11-13 22:40:14 +01:00
parent 62e3854f38
commit f6aabc0270
3 changed files with 35 additions and 5 deletions

View file

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

8
src/store/index.js Normal file
View file

@ -0,0 +1,8 @@
import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
export default new Vuex.Store({
});