fix(接口测试): 修复复制接口时报 undefined 的问题
--bug=1010100 --user=刘瑞斌 【接口定义】-复制sql协议的接口提示错误信息 https://www.tapd.cn/55049933/s/1100690
This commit is contained in:
parent
4ca70d0105
commit
e07b67838e
|
@ -232,7 +232,7 @@ export default {
|
||||||
getVersionHistory() {
|
getVersionHistory() {
|
||||||
this.$get('/api/definition/versions/' + this.basisData.id, response => {
|
this.$get('/api/definition/versions/' + this.basisData.id, response => {
|
||||||
if (this.basisData.isCopy) {
|
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 {
|
} else {
|
||||||
this.versionData = response.data;
|
this.versionData = response.data;
|
||||||
}
|
}
|
||||||
|
|
|
@ -236,7 +236,7 @@ export default {
|
||||||
getVersionHistory() {
|
getVersionHistory() {
|
||||||
this.$get('/api/definition/versions/' + this.basisData.id, response => {
|
this.$get('/api/definition/versions/' + this.basisData.id, response => {
|
||||||
if (this.basisData.isCopy) {
|
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 {
|
} else {
|
||||||
this.versionData = response.data;
|
this.versionData = response.data;
|
||||||
}
|
}
|
||||||
|
|
|
@ -353,7 +353,7 @@ export default {
|
||||||
getVersionHistory() {
|
getVersionHistory() {
|
||||||
this.$get('/api/definition/versions/' + this.basisData.id, response => {
|
this.$get('/api/definition/versions/' + this.basisData.id, response => {
|
||||||
if (this.basisData.isCopy) {
|
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 {
|
} else {
|
||||||
this.versionData = response.data;
|
this.versionData = response.data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue