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 {