setup vuex
This commit is contained in:
parent
62e3854f38
commit
f6aabc0270
3 changed files with 35 additions and 5 deletions
|
@ -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
8
src/store/index.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
import Vue from 'vue';
|
||||
import Vuex from 'vuex';
|
||||
|
||||
Vue.use(Vuex);
|
||||
|
||||
export default new Vuex.Store({
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue