fix(接口测试): 修复接口定义path无法编辑的缺陷

--bug=1019649 --user=王孝刚 [接口测试]github#19718接口定义,创建接口,无法输入URL
https://www.tapd.cn/55049933/s/1296548
This commit is contained in:
wxg0103 2022-11-16 13:39:14 +08:00 committed by wxg0103
parent bc4341d10c
commit 893eaa3179
1 changed files with 1 additions and 1 deletions

View File

@ -910,7 +910,7 @@ export default {
this.basisData.caseTotal = 0;
}
this.httpForm = JSON.parse(JSON.stringify(this.basisData));
if (this.basisData.request) {
if (this.basisData.request && this.basisData.id) {
this.httpForm.path = this.basisData.request.path;
this.httpForm.method = this.basisData.request.method;
}