From da5bfc2c78ff106e86813d8bb156069a1e9b228e Mon Sep 17 00:00:00 2001 From: CaptainB Date: Mon, 20 Jun 2022 19:09:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9=E6=97=A5=E5=BF=97=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/performance/report/components/LogDetails.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/performance/report/components/LogDetails.vue b/frontend/src/business/components/performance/report/components/LogDetails.vue index 60864e4c84..e7aaf19bb1 100644 --- a/frontend/src/business/components/performance/report/components/LogDetails.vue +++ b/frontend/src/business/components/performance/report/components/LogDetails.vue @@ -73,7 +73,6 @@ export default { this.resource = data; if (!this.currentInstance) { this.currentInstance = this.resource[0]?.resourceId; - this.changeInstance(this.currentInstance); } this.page = data.map(item => item.resourceId).reduce((result, curr) => { result[curr] = 1; @@ -83,6 +82,10 @@ export default { result[curr] = []; return result; }, {}); + // + if (this.currentInstance) { + this.changeInstance(this.currentInstance); + } }, load(resourceId) { if (this.loading || this.page[resourceId] > this.pageCount) {