mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-12-28 12:10:20 +08:00
first commit
This commit is contained in:
9
src/utils/cache/index.js
vendored
Normal file
9
src/utils/cache/index.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { createWebStorage } from './webStorage'
|
||||
|
||||
export const createLocalStorage = function (option = {}) {
|
||||
return createWebStorage({ prefixKey: option.prefixKey || '', storage: localStorage })
|
||||
}
|
||||
|
||||
export const createSessionStorage = function (option = {}) {
|
||||
return createWebStorage({ prefixKey: option.prefixKey || '', storage: localStorage })
|
||||
}
|
||||
Reference in New Issue
Block a user