From 5efb195a3e0c956c4b254408a8868368135eb773 Mon Sep 17 00:00:00 2001 From: zhangxiao <898441624@qq.com> Date: 星期五, 16 八月 2024 14:11:52 +0800 Subject: [PATCH] fix: 模型修改 --- 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