fix: 下钻表格切换tab时loading不对的问题

This commit is contained in:
chenjinsong
2022-10-11 17:08:25 +08:00
parent f659cf60a3
commit 19206b8144

View File

@@ -303,7 +303,6 @@ export default {
methods: { methods: {
/* 参数 extraParams 额外请求参数 */ /* 参数 extraParams 额外请求参数 */
getChartData (extraParams = {}) { getChartData (extraParams = {}) {
try {
this.initState() this.initState()
// const chartParams = this.chart.params // const chartParams = this.chart.params
const queryParams = { const queryParams = {
@@ -320,13 +319,12 @@ export default {
this.isNoData = true this.isNoData = true
this.toggleLoading(false) this.toggleLoading(false)
} }
}) }).catch(e => {
} catch (e) {
console.error(e) console.error(e)
} finally { }).finally(() => {
this.changeUrlTabState() this.changeUrlTabState()
this.toggleLoading(false) this.toggleLoading(false)
} })
}, },
sortable (title) { sortable (title) {
const excludeName = ['queriesFromIE'] const excludeName = ['queriesFromIE']