fix(接口测试): 修复接口路由重复跳转控制台报错 (#10354)

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
metersphere-bot 2022-02-09 18:33:57 +08:00 committed by GitHub
parent fe7d3b1d48
commit 6a2b00fe58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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() {