From 6a2b00fe589fd627e3766c86dbd073388e59ab7e Mon Sep 17 00:00:00 2001 From: metersphere-bot <78466014+metersphere-bot@users.noreply.github.com> Date: Wed, 9 Feb 2022 18:33:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E8=B7=AF=E7=94=B1=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E8=B7=B3=E8=BD=AC=E6=8E=A7=E5=88=B6=E5=8F=B0=E6=8A=A5?= =?UTF-8?q?=E9=94=99=20(#10354)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: wxg0103 <727495428@qq.com> --- .../components/api/definition/components/case/ApiCaseList.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue index b5eb07f09a..2114ca867e 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue @@ -209,7 +209,9 @@ export default { apiCaseClose() { this.apiCaseList = []; this.visible = false; - this.$router.replace({path: '/api/definition'}); + if (this.$route.fullPath !== this.$route.path) { + this.$router.replace({path: '/api/definition'}); + } this.$emit('refresh'); }, refreshModule() {