mirror of
https://github.com/talktao/Vue3-Vite-Vant-TS-H5.git
synced 2025-04-06 03:57:55 +08:00
代码格式化
This commit is contained in:
parent
06f33c1dea
commit
feb4398a65
@ -1,29 +1,29 @@
|
||||
import { createStore } from "vuex";
|
||||
import { createPinia } from "pinia"
|
||||
import { createPinia } from "pinia";
|
||||
|
||||
export const vuexStore = createStore({
|
||||
state: {
|
||||
state: {
|
||||
isLoading: false,
|
||||
userName: ""
|
||||
},
|
||||
getters: {
|
||||
|
||||
|
||||
},
|
||||
mutations: {
|
||||
mutations: {
|
||||
changeIsLoading(state, val) {
|
||||
state.isLoading = val;
|
||||
},
|
||||
|
||||
getUserNmae(state,data) {
|
||||
state.userName = data
|
||||
getUserNmae(state, data) {
|
||||
state.userName = data;
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
actions: {
|
||||
|
||||
|
||||
},
|
||||
modules: {},
|
||||
});
|
||||
|
||||
|
||||
export const piniaStore = createPinia()
|
||||
export const piniaStore = createPinia();
|
||||
|
Loading…
x
Reference in New Issue
Block a user