From 1683fe4eeb6b50a2501821165ab77781eb143597 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Mon, 27 Feb 2023 13:41:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppCooperationPropagandaBeta.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/project/huizhili/AppCooperationPropaganda/AppCooperationPropagandaBeta.vue b/src/project/huizhili/AppCooperationPropaganda/AppCooperationPropagandaBeta.vue index 37468cdf..aa67d347 100644 --- a/src/project/huizhili/AppCooperationPropaganda/AppCooperationPropagandaBeta.vue +++ b/src/project/huizhili/AppCooperationPropaganda/AppCooperationPropagandaBeta.vue @@ -133,6 +133,8 @@ export default { }, methods: { tabClick(item,index) { + this.list = [] + this.current = 1 this.tabIndex = index; this.sendType = item.value uni.removeStorageSync('userSelect') @@ -162,7 +164,6 @@ export default { }, getList() { let url = '' - this.list = [] let data = { current: this.current, taskTitle: this.taskTitle, @@ -182,7 +183,7 @@ export default { } this.$http.post(url,null, {params:{...data}}).then(res=> { if(res?.data) { - this.list = this.current == 1? res.data.records : [...this.list,...res.data.records] + this.list = this.current == 1? res.data.records : [...this.list, ...res.data.records] } }) },