From b112c97f7a5ce600b960429da2f4a61c697b72d0 Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Sat, 11 Oct 2025 10:05:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor(store):=20=E6=B7=BB=E5=8A=A0=20setActi?= =?UTF-8?q?vePinia=20=E4=BB=A5=E6=BF=80=E6=B4=BB=20store=20=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B,=20=E8=A7=A3=E5=86=B3APP=E7=99=BD=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/index.ts b/src/store/index.ts index d5e3770..d09a35c 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -1,4 +1,4 @@ -import { createPinia } from 'pinia' +import { createPinia, setActivePinia } from 'pinia' import { createPersistedState } from 'pinia-plugin-persistedstate' // 数据持久化 const store = createPinia() @@ -10,6 +10,7 @@ store.use( }, }), ) +setActivePinia(store) export default store