From e0f775838520ba9fb2621b9caf6ae79bd5341eb1 Mon Sep 17 00:00:00 2001 From: DanceLynx <15500785170@163.com> Date: Mon, 29 Jul 2024 04:09:26 +0000 Subject: [PATCH] =?UTF-8?q?update=20uniapp/src/utils/cache.ts.=20=E8=BF=87?= =?UTF-8?q?=E6=9C=9F=E5=8F=82=E6=95=B0=E7=B1=BB=E5=9E=8B=E5=BA=94=E8=AF=A5?= =?UTF-8?q?=E6=98=AFNumber=EF=BC=8C=E4=B8=8D=E7=84=B6=E4=BC=A0=E5=85=A5?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=E5=B0=86=E6=B0=B8=E4=B8=8D=E8=BF=87?= =?UTF-8?q?=E6=9C=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: DanceLynx <15500785170@163.com> --- uniapp/src/utils/cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uniapp/src/utils/cache.ts b/uniapp/src/utils/cache.ts index e3035f83d..9a83ba2dd 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 : '', -- Gitee