refactor(性能测试): 报告监控页面优化

This commit is contained in:
CaptainB 2021-11-01 09:49:23 +08:00 committed by 刘瑞斌
parent a116c35d97
commit cf39784e1b
1 changed files with 4 additions and 2 deletions

View File

@ -204,6 +204,10 @@ export default {
this.instances = response.data.data;
if (currentInstance) {
this.currentInstance = currentInstance;
this.showChart = false;
this.$nextTick(() => {
this.showChart = true;
});
} else {
this.currentInstance = this.currentInstance || this.instances[0].ip + ":" + this.instances[0].port;
}
@ -238,9 +242,7 @@ export default {
this.checkList = checkList;
}
this.totalOption = {};
this.showChart = false;
this.$nextTick(() => {
this.showChart = true;
this.totalOption = this.getOption(id);
this.changeDataZoom({start: 0, end: 100});
});