fix(接口测试): 修复复制接口时报 undefined 的问题

--bug=1010100 --user=刘瑞斌 【接口定义】-复制sql协议的接口提示错误信息 https://www.tapd.cn/55049933/s/1100690
This commit is contained in:
CaptainB 2022-01-28 17:39:30 +08:00 committed by CountryBuilder
parent 4ca70d0105
commit e07b67838e
3 changed files with 3 additions and 3 deletions

View File

@ -232,7 +232,7 @@ export default {
getVersionHistory() {
this.$get('/api/definition/versions/' + this.basisData.id, response => {
if (this.basisData.isCopy) {
this.versionData = response.data.filter(v => v.versionId === this.httpForm.versionId);
this.versionData = response.data.filter(v => v.versionId === this.basisData.versionId);
} else {
this.versionData = response.data;
}

View File

@ -236,7 +236,7 @@ export default {
getVersionHistory() {
this.$get('/api/definition/versions/' + this.basisData.id, response => {
if (this.basisData.isCopy) {
this.versionData = response.data.filter(v => v.versionId === this.httpForm.versionId);
this.versionData = response.data.filter(v => v.versionId === this.basisData.versionId);
} else {
this.versionData = response.data;
}

View File

@ -353,7 +353,7 @@ export default {
getVersionHistory() {
this.$get('/api/definition/versions/' + this.basisData.id, response => {
if (this.basisData.isCopy) {
this.versionData = response.data.filter(v => v.versionId === this.httpForm.versionId);
this.versionData = response.data.filter(v => v.versionId === this.basisData.versionId);
} else {
this.versionData = response.data;
}