fix(接口测试): 修复HTTP协议接口变更后未同步展示请求类型问题

--bug=1017915 --user=赵勇 【接口测试】接口TEST-更新接口后查看api,请求方式没有变更 https://www.tapd.cn/55049933/s/1291609
This commit is contained in:
fit2-zhao 2022-11-08 10:43:35 +08:00 committed by fit2-zhao
parent 5225fa52bd
commit 22a4e618a8
1 changed files with 4 additions and 1 deletions

View File

@ -894,7 +894,10 @@ export default {
this.basisData.caseTotal = 0;
}
this.httpForm = JSON.parse(JSON.stringify(this.basisData));
if(this.basisData.request) {
this.httpForm.path = this.basisData.request.path;
this.httpForm.method = this.basisData.request.method;
}
definitionFollow(this.basisData.id).then(response => {
this.httpForm.follows = response.data;
this.beforeHttpForm.follows = response.data;