refactor: 优化类型定义并重构代码逻辑

This commit is contained in:
Ray.Hao
2026-04-18 16:49:49 +08:00
parent 79ebad0aa1
commit 0288b5a08d
6 changed files with 12 additions and 15 deletions

View File

@@ -14,7 +14,7 @@
/**
* localStorage 存储
*/
function set(key: string, value: any): void {
function set<T>(key: string, value: T): void {
uni.setStorageSync(key, JSON.stringify(value));
}