diff --git a/uniapp/src/utils/cache.ts b/uniapp/src/utils/cache.ts index e3035f83d224256f18fd24786996370f2da9b5ed..9a83ba2ddd788c6ef954417b402c196676cdf25c 100644 --- a/uniapp/src/utils/cache.ts +++ b/uniapp/src/utils/cache.ts @@ -1,7 +1,7 @@ const cache = { key: 'app_', //设置缓存(expire为缓存时效) - set(key: string, value: any, expire?: string) { + set(key: string, value: any, expire?: number) { key = this.getKey(key) let data: any = { expire: expire ? this.time() + expire : '',