NEZ-3264 fix:查看 Agents 详情 数据重复

This commit is contained in:
zhangyu
2023-10-25 16:09:55 +08:00
parent 15dd677123
commit 073156e8d7

View File

@@ -54,8 +54,10 @@ export default {
async handler (n) { async handler (n) {
this.loading = true this.loading = true
this.getReadyTableData().then(res => { this.getReadyTableData().then(res => {
this.ringTableData = []
this.getTableData() this.getTableData()
}).catch(res => { }).catch(res => {
this.ringTableData = []
this.ringTableData.push([]) this.ringTableData.push([])
this.$refs.loading.endLoading() this.$refs.loading.endLoading()
this.loading = false this.loading = false
@@ -80,6 +82,7 @@ export default {
}, },
methods: { methods: {
async getTableData () { async getTableData () {
this.servicesTableData = []
await this.getCompactorTableData() await this.getCompactorTableData()
await this.getservicesTableData() await this.getservicesTableData()
await this.getIngesterTableData() await this.getIngesterTableData()