From 145b2988f7831cfc688b87d92c29832dbe188b28 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Tue, 15 Nov 2022 14:44:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/news/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/news/index.vue b/pages/news/index.vue index 52920a4..f8674ed 100644 --- a/pages/news/index.vue +++ b/pages/news/index.vue @@ -60,7 +60,7 @@ } }, onLoad() { - this.findData(true); + this.queryMessage(true); }, onPullDownRefresh() { @@ -120,6 +120,9 @@ }, click(item) { this.tab = item.index; + if(item.index == 1 && this.data.length == 0) { + this.findData(true); + } }, ubtab(num){ this.tab = num