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 = [] } })