fix(接口定义): 修复文档版本无法筛选的缺陷 (#17948)

--bug=1016793 --user=王孝刚 【接口测试】接口定义-API-按版本筛选-切换到文档,没进行筛选
https://www.tapd.cn/55049933/s/1244298

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-09-17 13:27:57 +08:00 committed by GitHub
parent bb3bea2b8d
commit 962c38bcc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 11 deletions

View File

@ -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 => {

View File

@ -1,7 +1,7 @@
<template>
<div>
<api-document-anchor :is-share-page="isSharePage" :trash-enable="trashEnable"
:project-id="projectId" :module-ids="moduleIds"
:module-ids="moduleIds" :project-id="projectId" :version-id="versionId"
ref="documentAnchor"/>
</div>
</template>

View File

@ -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/');
}