fix:修复webStorage拼写问题
This commit is contained in:
parent
aaf8b4e995
commit
952d9c1689
2
src/utils/cache/index.js
vendored
2
src/utils/cache/index.js
vendored
@ -5,5 +5,5 @@ export const createLocalStorage = function (option = {}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const createSessionStorage = function (option = {}) {
|
export const createSessionStorage = function (option = {}) {
|
||||||
return createWebStorage({ prefixKey: option.prefixKey || '', storage: localStorage })
|
return createWebStorage({ prefixKey: option.prefixKey || '', storage: sessionStorage })
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user