fix(接口测试): 修复接口定义导入,选择swagger后切换协议,还是显示了swagger相关信息的缺陷 (#15505)
--bug=1014624 --user=王孝刚 【接口测试】接口定义导入,选择swagger后切换协议,还是显示了swagger相关信息 https://www.tapd.cn/55049933/s/1194916 Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
parent
772f3a0d64
commit
4288026840
|
@ -303,6 +303,7 @@ export default {
|
||||||
}
|
}
|
||||||
if (this.selectedPlatformValue === 'Har' || this.selectedPlatformValue === 'ESB') {
|
if (this.selectedPlatformValue === 'Har' || this.selectedPlatformValue === 'ESB') {
|
||||||
this.formData.modeId = 'fullCoverage';
|
this.formData.modeId = 'fullCoverage';
|
||||||
|
this.$refs.form.clearValidate();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
protocol() {
|
protocol() {
|
||||||
|
@ -340,7 +341,7 @@ export default {
|
||||||
return this.selectedPlatformValue === 'Swagger2';
|
return this.selectedPlatformValue === 'Swagger2';
|
||||||
},
|
},
|
||||||
showImportModel() {
|
showImportModel() {
|
||||||
return this.selectedPlatformValue != 'Har' && this.selectedPlatformValue != 'ESB';
|
return this.selectedPlatformValue !== 'Har' && this.selectedPlatformValue !== 'ESB';
|
||||||
},
|
},
|
||||||
showTemplate() {
|
showTemplate() {
|
||||||
return this.selectedPlatformValue === 'ESB';
|
return this.selectedPlatformValue === 'ESB';
|
||||||
|
@ -464,6 +465,8 @@ export default {
|
||||||
swaggerUrl: '',
|
swaggerUrl: '',
|
||||||
modeId: this.formData.modeId,
|
modeId: this.formData.modeId,
|
||||||
};
|
};
|
||||||
|
this.swaggerUrlEnable = false;
|
||||||
|
this.selectedPlatformValue = 'Metersphere';
|
||||||
this.fileList = [];
|
this.fileList = [];
|
||||||
removeGoBackListener(this.close);
|
removeGoBackListener(this.close);
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
|
|
Loading…
Reference in New Issue