feat: 多标签增加sessionStorage缓存
This commit is contained in:
parent
8c1191ece2
commit
8973e39566
5
src/store/modules/tags/helpers.js
Normal file
5
src/store/modules/tags/helpers.js
Normal file
@ -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')
|
Loading…
Reference in New Issue
Block a user