From f10c2338586633fe83ec878212bd1fecf0c78d54 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 5 Aug 2020 17:22:01 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=9D=E5=AD=98=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=B5=8B=E8=AF=95=E4=B8=8D=E8=B7=B3=E8=BD=AC=E5=88=B0?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/components/api/test/ApiTestConfig.vue | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/frontend/src/business/components/api/test/ApiTestConfig.vue b/frontend/src/business/components/api/test/ApiTestConfig.vue index ab1d4cd63f..f95c758e1c 100644 --- a/frontend/src/business/components/api/test/ApiTestConfig.vue +++ b/frontend/src/business/components/api/test/ApiTestConfig.vue @@ -157,13 +157,9 @@ saveTest() { this.save(() => { this.$success(this.$t('commons.save_success')); - if (this.create) { - this.$router.push({ - path: '/api/test/edit?id=' + this.test.id - }) - } else { - this.$router.push({path: '/api/test/list/all'}) - } + this.$router.push({ + path: '/api/test/edit?id=' + this.test.id; + }) }) }, runTest() { @@ -183,7 +179,6 @@ }) }, cancel() { - // console.log(this.test.toJMX().xml) this.$router.push('/api/test/list/all'); }, getOptions(url) {