fix: 各模块流量曲线图测试用例修改

This commit is contained in:
hyx
2023-12-25 14:47:48 +08:00
parent e08a7a2434
commit 4ae22a1ea0
6 changed files with 30 additions and 6 deletions

View File

@@ -229,7 +229,11 @@ export default {
const newVal = val ? _.clone(val) : this.metric
this.toggleLoading(true)
try {
this.initData(this.chartDateObject, newVal, active, show, n)
if(this.chartDateObject.length > 0) {
this.initData(this.chartDateObject, newVal, active, show, n)
} else {
this.init(val, show, active, n)
}
} catch (e) {
console.error(e)
} finally {