From feb4398a658fcbb245163ebeed1951005061dbca Mon Sep 17 00:00:00 2001 From: tantao <1416249906@qq.com> Date: Thu, 25 Aug 2022 14:46:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/index.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/store/index.ts b/src/store/index.ts index ca0cd98..0478deb 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -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();