From 962c38bcc1b68fbe8f08e15a321c9ccfadd92203 Mon Sep 17 00:00:00 2001 From: MeterSphere Bot <78466014+metersphere-bot@users.noreply.github.com> Date: Sat, 17 Sep 2022 13:27:57 +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=89=88=E6=9C=AC=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E7=AD=9B=E9=80=89=E7=9A=84=E7=BC=BA=E9=99=B7=20(#1794?= =?UTF-8?q?8)?= 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/1244298 Co-authored-by: wxg0103 <727495428@qq.com> --- .../components/document/ApiDocumentAnchor.vue | 2 ++ .../definition/components/list/ApiDocumentsPage.vue | 2 +- frontend/src/network/custom-field-template.js | 10 ---------- 3 files changed, 3 insertions(+), 11 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 95c27339d9..bc667cc5a6 100644 --- a/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchor.vue +++ b/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchor.vue @@ -192,6 +192,7 @@ export default { type: Boolean, default: false, }, + versionId: String }, activated() { this.initApiDocSimpleList(); @@ -270,6 +271,7 @@ export default { } else { simpleRequest.moduleIds = []; } + simpleRequest.versionId = this.versionId; simpleRequest.trashEnable = this.trashEnable; let simpleInfoUrl = "/share/info/selectApiInfoByParam/" + this.currentPage + "/" + this.pageSize; this.$post(simpleInfoUrl, simpleRequest, response => { 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 3c237371f7..4c2044853c 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiDocumentsPage.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiDocumentsPage.vue @@ -1,7 +1,7 @@ diff --git a/frontend/src/network/custom-field-template.js b/frontend/src/network/custom-field-template.js index 7c8b7ec75b..efbaf00158 100644 --- a/frontend/src/network/custom-field-template.js +++ b/frontend/src/network/custom-field-template.js @@ -35,13 +35,3 @@ export function getApiTemplate() { } -export function getApiTemplate() { - return getTemplate('project/field/template/api/get-template/relate/'); -} - - -export function getApiTemplate() { - return getTemplate('project/field/template/api/get-template/relate/'); -} - -