fix: 各模块流量曲线图测试用例修改
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user