标签:why vue stat actions getters code pre getter const
import Vue from ‘vue‘;
import Vuex from ‘vuex‘;
Vue.use(Vuex);
Vuex.Store
const store = new Vuex.Store({
state: {},
mutations: {},
actions: {},
getters: {},
});
const root = new Vue({
store,
});
标签:why vue stat actions getters code pre getter const
原文地址:https://www.cnblogs.com/develon/p/12669544.html