From 028c9c7c99b01f1a0e49e66972baa59215cb974c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=88=BA=E8=9E=88?= Date: Wed, 6 Nov 2024 18:10:45 +0800 Subject: [PATCH] feat: replace local state with session storage for visibility toggles in SnapshotPage --- src/views/snapshot/SnapshotPage.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/snapshot/SnapshotPage.vue b/src/views/snapshot/SnapshotPage.vue index a7e368e..cce8a16 100644 --- a/src/views/snapshot/SnapshotPage.vue +++ b/src/views/snapshot/SnapshotPage.vue @@ -20,9 +20,9 @@ watchEffect(() => { } }); -const searchShow = shallowRef(true); -const ruleShow = shallowRef(false); -const attrShow = shallowRef(true); +const searchShow = useStorage('searchShow', true, sessionStorage); +const ruleShow = useStorage('ruleShow', false, sessionStorage); +const attrShow = useStorage('attrShow', true, sessionStorage); const clickSettings = () => { message.info('暂未实现');