From ea6e5cd5a84c8791ab88cea9c9b71f772e04c129 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Mon, 13 Jun 2022 19:53:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E8=BF=87=E5=8E=BB7=E5=A4=A9=E6=9C=89=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --user=郭雨琦 --bug=1014026 接口首页,过去7天有更新的接口,点击ID/名称跳转后会提示场景已删除 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001014026 --- .../components/api/definition/ApiDefinition.vue | 4 ++-- .../api/homepage/components/ApiNewTestCaseList.vue | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/src/business/components/api/definition/ApiDefinition.vue b/frontend/src/business/components/api/definition/ApiDefinition.vue index b8daaac905..b0565acb91 100644 --- a/frontend/src/business/components/api/definition/ApiDefinition.vue +++ b/frontend/src/business/components/api/definition/ApiDefinition.vue @@ -723,9 +723,9 @@ export default { } this.$nextTick(() => { this.apiDefaultTab = newTabName; - if(!addNewTab && action === "SCHEDULE") { + if (!addNewTab && action === "SCHEDULE") { //定时任务tab不用重新开启,但是需要更新数据 - if(this.$refs.apiSchedules){ + if (this.$refs.apiSchedules) { this.$refs.apiSchedules.searchTaskList(); } } diff --git a/frontend/src/business/components/api/homepage/components/ApiNewTestCaseList.vue b/frontend/src/business/components/api/homepage/components/ApiNewTestCaseList.vue index c91172cfb5..c0538245a4 100644 --- a/frontend/src/business/components/api/homepage/components/ApiNewTestCaseList.vue +++ b/frontend/src/business/components/api/homepage/components/ApiNewTestCaseList.vue @@ -202,7 +202,7 @@ export default { let uuid = getUUID(); switch (pageType) { case "api": - this.$router.push('/api/definition/' + uuid + '?resourceId=' + param) + this.$emit('redirectPage', 'api', 'api', 'edit:' + param); break; case "apiCase": this.$emit('redirectPage', 'api', 'apiTestCase', 'singleList:' + param); @@ -215,13 +215,13 @@ export default { } }, }, - created() { - this.search(); - }, - activated() { - this.search(); - } + created() { + this.search(); + }, + activated() { + this.search(); } +}