From fa5fd89d1fd0f2d0b0bb1944b3ac4a452c49f83a Mon Sep 17 00:00:00 2001
From: zhangxiao <898441624@qq.com>
Date: 星期六, 17 八月 2024 16:30:33 +0800
Subject: [PATCH] fix: 修改分页id

---
 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