refactor: 自定义监控页面优化
This commit is contained in:
parent
4da1c8adcf
commit
fa89979461
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue