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('暂未实现');