refactor: 优化代码规范和可读性

This commit is contained in:
Ray.Hao
2026-05-25 22:22:42 +08:00
parent e3e5b87f89
commit 2a538d7da7
56 changed files with 324 additions and 294 deletions

View File

@@ -15,7 +15,7 @@ export class Storage {
/**
* 存储数据到 localStorage
*/
static set(key: string, value: any): void {
static set(key: string, value: unknown): void {
localStorage.setItem(key, JSON.stringify(value));
}
@@ -46,7 +46,7 @@ export class Storage {
/**
* 存储数据到 sessionStorage
*/
static sessionSet(key: string, value: any): void {
static sessionSet(key: string, value: unknown): void {
sessionStorage.setItem(key, JSON.stringify(value));
}