refactor: eslint代码检查优化

Former-commit-id: 4c11b5d0cdd10f28148cf3d9b593f85e082cdc51
This commit is contained in:
郝先瑞
2022-04-15 00:45:06 +08:00
parent 15022f51b9
commit dd93144788
69 changed files with 820 additions and 1774 deletions

View File

@@ -8,7 +8,7 @@ export const localStorage = {
},
// 获取永久缓存
get(key: string) {
let json: any = window.localStorage.getItem(key);
const json: any = window.localStorage.getItem(key);
return JSON.parse(json);
},
// 移除永久缓存
@@ -31,7 +31,7 @@ export const sessionStorage = {
},
// 获取临时缓存
get(key: string) {
let json: any = window.sessionStorage.getItem(key);
const json: any = window.sessionStorage.getItem(key);
return JSON.parse(json);
},
// 移除临时缓存