浏览代码

修改提示信息

wangxy 21 小时之前
父节点
当前提交
ae3df0963c
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      pages/chanpinXuanze/index.vue

+ 7 - 1
pages/chanpinXuanze/index.vue

@@ -103,8 +103,14 @@
 			data.shuxueList = result.shuxue;
 			data.yingyuList = result.yingyu;
 			data.yuwenList = result.yuwen;
+			
+			if (!data.shuxueList.length && !data.yingyuList.length && !data.yuwenList.length) {
+				// 并无学习数据时,清理时间缓存
+				resetDate()
+			}
+			
 		}).catch(err => {
-			// 清理时间缓存
+			// 请求异常时,清理时间缓存
 			resetDate()
 		})
 	}