feat(projects): 新增多页签缓存功能

This commit is contained in:
Soybean
2021-11-20 21:30:49 +08:00
parent ffe987832f
commit d86f891c64
15 changed files with 132 additions and 43 deletions

View File

@@ -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) {