fix: 修复panelChart switch 循环问题

This commit is contained in:
@changcode
2021-12-16 18:27:58 +08:00
parent 068d66e1f3
commit ca7f305c57

View File

@@ -97,9 +97,7 @@ export default {
switch (this.chartInfo.datasource) {
case 'metrics': {
if (this.chartInfo.type === 'assetInfo') {
console.log(this.chartDetailInfo)
this.$get('asset/asset/' + this.chartDetailInfo.id).then(res => {
console.log(res)
this.chartData = res.data
})
}
@@ -108,6 +106,7 @@ export default {
this.chartData = res.data
})
}
break
}
case 'logs': {
let urlPre = ''