setup vuex

This commit is contained in:
RemiSaurel
2022-08-25 20:39:59 +02:00
parent 26f83d0bc1
commit 7f754f2e09
4 changed files with 47 additions and 7 deletions
+2
View File
@@ -1,8 +1,10 @@
import Vue from 'vue'
import App from './App.vue'
import store from "./store";
Vue.config.productionTip = false
new Vue({
store,
render: h => h(App),
}).$mount('#app')
+17
View File
@@ -0,0 +1,17 @@
// store/index.js
import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
export default new Vuex.Store({
state: {
},
getters: {
},
mutations: {
},
actions: {
}
});