refactor: 自定义监控页面优化

This commit is contained in:
Captain.B 2021-09-17 12:46:01 +08:00 committed by 刘瑞斌
parent 4da1c8adcf
commit fa89979461
1 changed files with 2 additions and 0 deletions

View File

@ -185,6 +185,7 @@ export default {
this.instances = response.data.data; this.instances = response.data.data;
if (!this.currentInstance) { if (!this.currentInstance) {
this.currentInstance = this.instances[0].ip + ":" + this.instances[0].port; this.currentInstance = this.instances[0].ip + ":" + this.instances[0].port;
this.handleChecked(this.currentInstance);
} }
getSharePerformanceMetricQuery(this.shareId, this.id).then(result => { getSharePerformanceMetricQuery(this.shareId, this.id).then(result => {
if (result) { if (result) {
@ -199,6 +200,7 @@ export default {
this.instances = response.data.data; this.instances = response.data.data;
if (!this.currentInstance) { if (!this.currentInstance) {
this.currentInstance = this.instances[0].ip + ":" + this.instances[0].port; this.currentInstance = this.instances[0].ip + ":" + this.instances[0].port;
this.handleChecked(this.currentInstance);
} }
getPerformanceMetricQuery(this.id).then(result => { getPerformanceMetricQuery(this.id).then(result => {
if (result) { if (result) {