From 9bdf4bcec258124dd9b9ad168f6f256fd5ec9c02 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Thu, 27 Feb 2020 13:42:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=B5=8B=E8=AF=95=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/performance/components/testPlan/EditTestPlan.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/performance/components/testPlan/EditTestPlan.vue b/frontend/src/performance/components/testPlan/EditTestPlan.vue index 56aacb7be..ac8ab0390 100644 --- a/frontend/src/performance/components/testPlan/EditTestPlan.vue +++ b/frontend/src/performance/components/testPlan/EditTestPlan.vue @@ -77,6 +77,11 @@ watch: { '$route'(to) { window.console.log(to); + // 如果是创建测试 + if (to.name === 'createTest') { + window.location.reload(); + return; + } let testId = to.path.split('/')[2]; // find testId this.$get('/testplan/get/' + testId, response => { this.testPlan = response.data; -- GitLab