fix: 修复开源版代码创建接口报错的问题
This commit is contained in:
parent
bd001ec0b4
commit
c4d7514bd0
|
@ -1378,7 +1378,7 @@ export default {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
await this.setParameter();
|
await this.setParameter();
|
||||||
if (!this.currentScenario.versionId) {
|
if (!this.currentScenario.versionId) {
|
||||||
if (this.$refs.versionHistory) {
|
if (this.$refs.versionHistory && this.$refs.versionHistory.currentVersion) {
|
||||||
this.currentScenario.versionId = this.$refs.versionHistory.currentVersion.id;
|
this.currentScenario.versionId = this.$refs.versionHistory.currentVersion.id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -459,7 +459,7 @@ export default {
|
||||||
this.setParameter();
|
this.setParameter();
|
||||||
|
|
||||||
if (!this.httpForm.versionId) {
|
if (!this.httpForm.versionId) {
|
||||||
if (this.$refs.versionHistory) {
|
if (this.$refs.versionHistory && this.$refs.versionHistory.currentVersion) {
|
||||||
this.httpForm.versionId = this.$refs.versionHistory.currentVersion.id;
|
this.httpForm.versionId = this.$refs.versionHistory.currentVersion.id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -312,7 +312,7 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!this.test.versionId) {
|
if (!this.test.versionId) {
|
||||||
if (this.$refs.versionHistory) {
|
if (this.$refs.versionHistory && this.$refs.versionHistory.currentVersion) {
|
||||||
this.test.versionId = this.$refs.versionHistory.currentVersion.id;
|
this.test.versionId = this.$refs.versionHistory.currentVersion.id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue