From de7b996fd940b2ead340bfc226d2dc37aa403553 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Fri, 27 May 2022 11:15:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B7=B2=E7=9F=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/views/dashboard/components/customContent.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jero-web/src/views/dashboard/components/customContent.vue b/jero-web/src/views/dashboard/components/customContent.vue index f392f59dc..e7c154e31 100644 --- a/jero-web/src/views/dashboard/components/customContent.vue +++ b/jero-web/src/views/dashboard/components/customContent.vue @@ -73,14 +73,14 @@ methods: { customClick() { this.visible = true - this.dataSourceTopList = [] - this.dataSourceContentList = [] this.getList() }, getList() { getAction(this.url.list, {}).then((res) => { if (res.success) { this.dataSource = res.result || [] + this.dataSourceTopList = [] + this.dataSourceContentList = [] this.dataSource.forEach(val => { if (val.state == 1) { this.dataSourceTopList.push(val) @@ -88,6 +88,8 @@ } }) } else { + this.dataSourceTopList = [] + this.dataSourceContentList = [] this.dataSource = [] } })