CN-468 fix: loading及时消失

This commit is contained in:
chenjinsong
2022-04-08 17:23:57 +08:00
parent 83e135a696
commit bb69571509

View File

@@ -262,13 +262,7 @@ export default {
this.errorInfo = response.msg || response.message || 'Unknown' this.errorInfo = response.msg || response.message || 'Unknown'
} }
}).finally(() => { }).finally(() => {
setTimeout(() => { this.loading = false
if (!(isIpHostedDomain(this.chartInfo.type) || isAppRelatedDomain(this.chartInfo.type))) {
this.loading = false
} else if (!this.chartData || this.chartData.length === 0) {
this.loading = false
}
}, 200)
}) })
} else if (this.isGroup || this.isTabs) { } else if (this.isGroup || this.isTabs) {
this.$refs.chart.$refs.chart.reload() this.$refs.chart.$refs.chart.reload()