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')