fix: 修复接口用例页面报错
--bug=1009455 --user=刘瑞斌 【版本管理】接口用例-列表页报错 https://www.tapd.cn/55049933/s/1089303
This commit is contained in:
parent
20ba32bf6a
commit
73f7e3db27
|
@ -73,6 +73,7 @@
|
|||
<api-case-simple-list
|
||||
v-if="trashActiveDom==='right'"
|
||||
:current-protocol="currentProtocol"
|
||||
:current-version="currentVersion"
|
||||
:visible="visible"
|
||||
:currentRow="currentRow"
|
||||
:select-node-ids="selectNodeIds"
|
||||
|
|
|
@ -91,6 +91,7 @@
|
|||
<api-case-simple-list
|
||||
class="api-case-simple-list"
|
||||
:apiDefinitionId="currentApi.id"
|
||||
:apiDefinition="currentApi"
|
||||
:current-version="currentApi.versionId"
|
||||
:trash-enable="false"
|
||||
@changeSelectDataRangeAll="changeSelectDataRangeAll"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<span>
|
||||
<span>
|
||||
<div class="ms-opt-btn" v-if="apiDefinitionId">
|
||||
{{ $t('project.version.name') }}: {{ versionName }}
|
||||
{{ $t('project.version.name') }}: {{ apiDefinition.versionName }}
|
||||
</div>
|
||||
<el-input :placeholder="$t('commons.search_by_id_name_tag')" @blur="search" @keyup.enter.native="search"
|
||||
class="search-input" size="small"
|
||||
|
@ -415,6 +415,7 @@ export default {
|
|||
currentProtocol: String,
|
||||
currentVersion: String,
|
||||
apiDefinitionId: String,
|
||||
apiDefinition: Object,
|
||||
selectNodeIds: Array,
|
||||
activeDom: String,
|
||||
visible: {
|
||||
|
@ -1169,7 +1170,6 @@ export default {
|
|||
getVersionOptions() {
|
||||
if (hasLicense()) {
|
||||
this.$get('/project/version/get-project-versions/' + getCurrentProjectID(), response => {
|
||||
this.versionName = response.data.filter(v => v.id === this.currentVersion)[0].name;
|
||||
this.versionFilters = response.data.map(u => {
|
||||
return {text: u.name, value: u.id};
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue