From 8973e3956666ae5458784a46e8ff1ca83948211f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Mon, 11 Apr 2022 22:13:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A4=9A=E6=A0=87=E7=AD=BE=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0sessionStorage=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/tags/helpers.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/store/modules/tags/helpers.js diff --git a/src/store/modules/tags/helpers.js b/src/store/modules/tags/helpers.js new file mode 100644 index 0000000..71c3eb2 --- /dev/null +++ b/src/store/modules/tags/helpers.js @@ -0,0 +1,5 @@ +import { createSessionStorage } from '@/utils/cache' + +export const tagsSS = createSessionStorage({ prefixKey: 'tag_' }) +export const activeTag = tagsSS.get('activeTag') +export const tags = tagsSS.get('tags')