feat:vuex状态存储

This commit is contained in:
talktao 2022-03-25 00:52:02 +08:00
parent 0b4dc34fb5
commit 9119433d69

View File

@ -3,13 +3,12 @@ import { createStore } from "vuex";
const store = createStore({ const store = createStore({
state: { state: {
isLoading: false, isLoading: false,
userNmae: "vue3.0开发H5模板" userNmae: ""
}, },
getters: { getters: {
}, },
mutations: { mutations: {
changeIsLoading(state, val) { changeIsLoading(state, val) {
state.isLoading = val; state.isLoading = val;
}, },