fix(接口测试): 创建API定义前端报错问题

--bug=1033905 --user=宋昌昌 【接口测试】创建api失败-前端报错 https://www.tapd.cn/55049933/s/1447408
This commit is contained in:
song-cc-rock 2023-12-22 13:59:02 +08:00 committed by Craftsman
parent 2860874293
commit 347d81b533
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ export default {
setParameters(data) { setParameters(data) {
data.projectId = this.projectId; data.projectId = this.projectId;
this.request.name = this.currentApi.name; this.request.name = this.currentApi.name;
this.request.path = this.currentApi.path.trimEnd(); this.request.path = data.path.trimEnd();
data.protocol = this.currentProtocol; data.protocol = this.currentProtocol;
data.request = this.request; data.request = this.request;
data.request.name = data.name; data.request.name = data.name;