fix(接口测试): 修复接口文档版本筛选不生效的问题

--bug=1011852 --user=刘瑞斌 【接口测试】接口文档版本筛选错误 https://www.tapd.cn/55049933/s/1129463
This commit is contained in:
CaptainB 2022-04-02 14:57:35 +08:00 committed by 刘瑞斌
parent d453c5e9b3
commit cc0a0b7cf9
2 changed files with 2 additions and 3 deletions

View File

@ -170,7 +170,6 @@ export default {
documentId: String,
moduleIds: Array,
sharePage: Boolean,
versionId: String,
pageHeaderHeight: Number,
trashEnable: {
type: Boolean,
@ -255,7 +254,6 @@ export default {
simpleRequest.moduleIds = [];
}
simpleRequest.trashEnable = this.trashEnable;
simpleRequest.versionId = this.versionId;
let simpleInfoUrl = "/share/info/selectApiSimpleInfo";

View File

@ -1,7 +1,7 @@
<template>
<div>
<api-document-anchor :is-share-page="isSharePage" :trash-enable="trashEnable"
:project-id="projectId" :module-ids="moduleIds" :version-id="versionId"
:project-id="projectId" :module-ids="moduleIds"
ref="documentAnchor"/>
</div>
</template>
@ -41,6 +41,7 @@ export default {
computed: {},
methods: {
initApiDocSimpleList() {
this.condition.versionId = this.versionId;
Object.assign(this.$refs.documentAnchor.apiSearch, this.condition);
this.$refs.documentAnchor.initApiDocSimpleList();
}