From 7067723946f837d0468814c28fe4971b7c331d11 Mon Sep 17 00:00:00 2001 From: liudong <liudong> Date: 星期六, 24 八月 2024 20:12:28 +0800 Subject: [PATCH] 知识库列表修改 --- src/store/index.ts | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/store/index.ts b/src/store/index.ts index 1f9ed2d..d3f0dab 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -3,8 +3,13 @@ import useUserStore from './modules/user'; import usePinia from './modules/storeMsg'; import useTabBarStore from './modules/tab-bar'; +import userModelState from './modules/shareModel'; + +import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' //寮曞叆鎸佷箙鍖栨彃浠� const pinia = createPinia(); -export { useAppStore, useUserStore,usePinia, useTabBarStore }; +pinia.use(piniaPluginPersistedstate) //灏嗘彃浠舵坊鍔犲埌 pinia 瀹炰緥涓� + +export { useAppStore, useUserStore,usePinia, useTabBarStore,userModelState }; export default pinia; -- Gitblit v1.8.0