mirror of
https://github.com/talktao/Vue3-Vite-Vant-TS-H5.git
synced 2025-04-06 03:57:55 +08:00
feat:vuex状态存储
This commit is contained in:
parent
0b4dc34fb5
commit
9119433d69
@ -3,13 +3,12 @@ import { createStore } from "vuex";
|
||||
const store = createStore({
|
||||
state: {
|
||||
isLoading: false,
|
||||
userNmae: "vue3.0开发H5模板"
|
||||
userNmae: ""
|
||||
},
|
||||
getters: {
|
||||
|
||||
},
|
||||
mutations: {
|
||||
|
||||
mutations: {
|
||||
changeIsLoading(state, val) {
|
||||
state.isLoading = val;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user