修改已知问题

This commit is contained in:
qq787203167
2022-05-27 11:15:21 +08:00
parent 8873ef5ca1
commit de7b996fd9
@@ -73,14 +73,14 @@
methods: { methods: {
customClick() { customClick() {
this.visible = true this.visible = true
this.dataSourceTopList = []
this.dataSourceContentList = []
this.getList() this.getList()
}, },
getList() { getList() {
getAction(this.url.list, {}).then((res) => { getAction(this.url.list, {}).then((res) => {
if (res.success) { if (res.success) {
this.dataSource = res.result || [] this.dataSource = res.result || []
this.dataSourceTopList = []
this.dataSourceContentList = []
this.dataSource.forEach(val => { this.dataSource.forEach(val => {
if (val.state == 1) { if (val.state == 1) {
this.dataSourceTopList.push(val) this.dataSourceTopList.push(val)
@@ -88,6 +88,8 @@
} }
}) })
} else { } else {
this.dataSourceTopList = []
this.dataSourceContentList = []
this.dataSource = [] this.dataSource = []
} }
}) })