From 7e6fecc09f6f06cdff22acb53fa659a3aceb9b95 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 10 Jun 2020 10:01:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/PerformanceReportRecentList.vue | 3 +++ .../performance/home/PerformanceTestHome.vue | 14 +++++++++++--- .../performance/home/PerformanceTestRecentList.vue | 3 +++ .../src/business/components/project/MsProject.vue | 3 +++ 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/performance/home/PerformanceReportRecentList.vue b/frontend/src/business/components/performance/home/PerformanceReportRecentList.vue index c89fc07c65..ede8d066a4 100644 --- a/frontend/src/business/components/performance/home/PerformanceReportRecentList.vue +++ b/frontend/src/business/components/performance/home/PerformanceReportRecentList.vue @@ -53,6 +53,9 @@ created() { this.search(); + }, + activated() { + this.search(); } } diff --git a/frontend/src/business/components/performance/home/PerformanceTestHome.vue b/frontend/src/business/components/performance/home/PerformanceTestHome.vue index 8d1a9fb72a..eb1d86f900 100644 --- a/frontend/src/business/components/performance/home/PerformanceTestHome.vue +++ b/frontend/src/business/components/performance/home/PerformanceTestHome.vue @@ -42,10 +42,18 @@ } }, mounted() { - this.result = this.$get('/performance/dashboard/tests', response => { - this.values = response.data; - }); + this.getValues(); }, + activated() { + this.getValues(); + }, + methods: { + getValues() { + this.result = this.$get('/performance/dashboard/tests', response => { + this.values = response.data; + }); + } + } } diff --git a/frontend/src/business/components/performance/home/PerformanceTestRecentList.vue b/frontend/src/business/components/performance/home/PerformanceTestRecentList.vue index 24fe757a6f..2790e989d4 100644 --- a/frontend/src/business/components/performance/home/PerformanceTestRecentList.vue +++ b/frontend/src/business/components/performance/home/PerformanceTestRecentList.vue @@ -54,6 +54,9 @@ created() { this.search(); + }, + activated() { + this.search(); } } diff --git a/frontend/src/business/components/project/MsProject.vue b/frontend/src/business/components/project/MsProject.vue index 74b55841fc..00b25f8301 100644 --- a/frontend/src/business/components/project/MsProject.vue +++ b/frontend/src/business/components/project/MsProject.vue @@ -122,6 +122,9 @@ } this.list(); }, + activated() { + this.list(); + }, watch: { '$route'(to) { if (this.$route.path.split('/')[2] === 'project' &&