新增加本地存储方法
This commit is contained in:
parent
d8b3c45e3f
commit
123a8fb57c
@ -14,3 +14,15 @@ export const cookie = {
|
||||
Cookies.get(key)
|
||||
}
|
||||
}
|
||||
|
||||
export const local = {
|
||||
set(key, data) {
|
||||
return localStorage.setItem(key, data)
|
||||
},
|
||||
remove(key) {
|
||||
return localStorage.removeItem(key)
|
||||
},
|
||||
get(key) {
|
||||
return localStorage.getItem(key)
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user