代码格式化

This commit is contained in:
tantao 2022-08-25 14:46:32 +08:00
parent 06f33c1dea
commit feb4398a65

View File

@ -1,29 +1,29 @@
import { createStore } from "vuex"; import { createStore } from "vuex";
import { createPinia } from "pinia" import { createPinia } from "pinia";
export const vuexStore = createStore({ export const vuexStore = createStore({
state: { state: {
isLoading: false, isLoading: false,
userName: "" userName: ""
}, },
getters: { getters: {
}, },
mutations: { mutations: {
changeIsLoading(state, val) { changeIsLoading(state, val) {
state.isLoading = val; state.isLoading = val;
}, },
getUserNmae(state,data) { getUserNmae(state, data) {
state.userName = data state.userName = data;
} }
}, },
actions: { actions: {
}, },
modules: {}, modules: {},
}); });
export const piniaStore = createPinia() export const piniaStore = createPinia();