Skip to content

Commit efe8f94

Browse files
committed
Added vuex store
1 parent 8d68baf commit efe8f94

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ import "@babel/polyfill";
22
import "mutationobserver-shim";
33
import Vue from "vue";
44
import "./plugins/bootstrap-vue";
5+
import store from "./store/index";
56
import App from "./App.vue";
67

78
Vue.config.productionTip = false;
89

910
new Vue({
1011
render: (h) => h(App),
12+
store: store,
1113
}).$mount("#app");

src/store/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Vue from "vue";
2+
import Vuex from "vuex";
3+
4+
Vue.use(Vuex);
5+
6+
const store = new Vuex.Store({
7+
state: {},
8+
getters: {},
9+
mutations: {},
10+
actions: {},
11+
});
12+
13+
export default store;

0 commit comments

Comments
 (0)