From bac4be00f421811ea44c4c5df5f10260a01631a2 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 27 Apr 2023 15:57:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E8=BD=AC=E6=80=A7=E8=83=BD?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=A4=9A=E6=AC=A1=E7=82=B9=E5=87=BB=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E5=B9=B6=E6=89=A7=E8=A1=8C=E6=8F=90=E7=A4=BA=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E6=96=87=E4=BB=B6=E5=B7=B2=E5=AD=98=E5=9C=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1025740 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001025740 --- .../frontend/src/business/test/EditPerformanceTest.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/performance-test/frontend/src/business/test/EditPerformanceTest.vue b/performance-test/frontend/src/business/test/EditPerformanceTest.vue index 53569a1b0c..615a4441fb 100644 --- a/performance-test/frontend/src/business/test/EditPerformanceTest.vue +++ b/performance-test/frontend/src/business/test/EditPerformanceTest.vue @@ -505,10 +505,18 @@ export default { let formData = this.getSaveOption(); this.loading = saveTest(this.test, formData).then(({ data }) => { this.test.id = data.data.id; + if (this.$route.path.indexOf("/performance/test/edit/") < 0) { + this.$router.push({ + path: "/performance/test/edit/" + data.data.id, + }); + } else { + this.$refs.basicConfig.uploadList = []; + this.getTest(this.test.id); + } this.$success(this.$t("commons.save_success")); runTest(this.test).then((response) => { let reportId = response.data; - this.$router.push({ path: "/performance/report/view/" + reportId }); + this.$router.push({path: "/performance/report/view/" + reportId}); }); }); },