From ac9efae8efb55b6ec378ccca1cf6dea75ea36520 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Thu, 29 Sep 2022 14:29:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E6=A1=A3=E7=AD=9B=E9=80=89=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016793 --user=王孝刚 【接口测试】接口定义-API-按版本筛选-切换到文档,没进行筛选 https://www.tapd.cn/55049933/s/1254476 --- .../components/document/ApiDocumentAnchor.vue | 3 +++ .../components/list/ApiDocumentsPage.vue | 15 --------------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchor.vue b/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchor.vue index bc667cc5a6..2953dc219e 100644 --- a/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchor.vue +++ b/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchor.vue @@ -236,6 +236,9 @@ export default { trashEnable() { this.initApiDocSimpleList(); }, + versionId() { + this.initApiDocSimpleList(); + } }, methods: { handleSizeChange(val) { diff --git a/frontend/src/business/components/api/definition/components/list/ApiDocumentsPage.vue b/frontend/src/business/components/api/definition/components/list/ApiDocumentsPage.vue index 4c2044853c..762331afa3 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiDocumentsPage.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiDocumentsPage.vue @@ -31,21 +31,6 @@ export default { default: false, }, }, - created: function () { - }, - watch: { - versionId() { - this.initApiDocSimpleList(); - } - }, - computed: {}, - methods: { - initApiDocSimpleList() { - this.condition.versionId = this.versionId; - Object.assign(this.$refs.documentAnchor.apiSearch, this.condition); - this.$refs.documentAnchor.initApiDocSimpleList(); - } - }, };