fix: vxe size

This commit is contained in:
xingyu4j
2022-11-10 13:15:55 +08:00
parent 55405afe94
commit 7922e90135
3 changed files with 18 additions and 11 deletions

View File

@ -4,9 +4,9 @@
import WebStorageCache from 'web-storage-cache'
type CacheType = 'sessionStorage' | 'localStorage'
type CacheType = 'localStorage' | 'sessionStorage'
export const useCache = (type: CacheType = 'sessionStorage') => {
export const useCache = (type: CacheType = 'localStorage') => {
const wsCache: WebStorageCache = new WebStorageCache({
storage: type
})