From 3fea4c6a262e3d5953f8cd528e12dda7eae6e3c9 Mon Sep 17 00:00:00 2001
From: SZH <szh_hello@163.com>
Date: 星期三, 02 十一月 2022 15:51:21 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/stores/index.ts |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/stores/index.ts b/src/stores/index.ts
index 27c377e..d9c4034 100644
--- a/src/stores/index.ts
+++ b/src/stores/index.ts
@@ -1,8 +1,15 @@
 // https://pinia.vuejs.org/
 import { createPinia } from 'pinia';
+import { createPersistedState } from 'pinia-plugin-persistedstate'
 
 // 创建
 const pinia = createPinia();
+pinia.use(createPersistedState({
+	serializer:{
+		serialize:JSON.stringify,
+		deserialize:JSON.parse,
+	}
+}))
 
 // 导出
 export default pinia;

--
Gitblit v1.9.2