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

--bug=1019649 --user=王孝刚 [接口测试]github#19718接口定义,创建接口,无法输入URL https://www.tapd.cn/55049933/s/1295675
This commit is contained in:
wxg0103 2022-11-14 17:33:10 +08:00 committed by 刘瑞斌
parent 37e7e93cac
commit 161336a8f7
1 changed files with 1 additions and 1 deletions

View File

@ -910,7 +910,7 @@ export default {
this.basisData.caseTotal = 0; this.basisData.caseTotal = 0;
} }
this.httpForm = JSON.parse(JSON.stringify(this.basisData)); 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.path = this.basisData.request.path;
this.httpForm.method = this.basisData.request.method; this.httpForm.method = this.basisData.request.method;
} }