feat(projects): 新增多页签缓存功能
This commit is contained in:
@ -8,7 +8,7 @@ export function getLocal<T>(key: string) {
|
||||
if (json) {
|
||||
return JSON.parse(json) as T;
|
||||
}
|
||||
return json;
|
||||
return null;
|
||||
}
|
||||
|
||||
export function removeLocal(key: string) {
|
||||
|
||||
@ -8,7 +8,7 @@ export function getSession<T>(key: string) {
|
||||
if (json) {
|
||||
return JSON.parse(json) as T;
|
||||
}
|
||||
return json;
|
||||
return null;
|
||||
}
|
||||
|
||||
export function removeSession(key: string) {
|
||||
|
||||
Reference in New Issue
Block a user