Skip to content

Commit

Permalink
feat: replace local state with session storage for visibility toggles…
Browse files Browse the repository at this point in the history
… in SnapshotPage
  • Loading branch information
lisonge committed Nov 6, 2024
1 parent 5eaddea commit 028c9c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/snapshot/SnapshotPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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('暂未实现');
Expand Down

0 comments on commit 028c9c7

Please sign in to comment.