feat: 多标签增加sessionStorage缓存

This commit is contained in:
张传龙 2022-04-11 22:13:17 +08:00
parent 8c1191ece2
commit 8973e39566

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