From 5d7afeebd643e9da069129dd943a308f8c2054af Mon Sep 17 00:00:00 2001 From: "jqtmviyu@gmail.com" Date: Thu, 25 Feb 2021 17:24:16 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20date=E5=86=99=E9=94=99=E6=88=90data,?= =?UTF-8?q?=20=E5=AF=BC=E8=87=B4=E9=87=8D=E6=96=B0=E5=8A=A0=E8=BD=BDonLoad?= =?UTF-8?q?=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/category/category.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/category/category.vue b/src/pages/category/category.vue index fa08974..c21a06f 100644 --- a/src/pages/category/category.vue +++ b/src/pages/category/category.vue @@ -51,7 +51,7 @@ export default { const cate = uni.getStorageSync("categories") if(cate){ // 数据超过10秒, 从新从接口拿数据并更新到本地 - if(Data.now() - cate.time > 1000 * 10){ + if(Date.now() - cate.time > 1000 * 10){ message = (await this.$u.api.getCategories()).message uni.setStorageSync("categories", { time: Date.now(), list: message }); }else {