fix(接口定义) 修复批量添加rest参数问题

This commit is contained in:
fit2-zhao 2021-09-17 16:35:39 +08:00 committed by fit2-zhao
parent f61f273a50
commit 1c28d6bee3
1 changed files with 13 additions and 1 deletions

View File

@ -262,7 +262,19 @@ export default {
}
}
if (isAdd) {
this.request.arguments.unshift(obj);
switch (this.activeName) {
case "parameters":
this.request.arguments.unshift(obj);
break;
case "rest":
this.request.rest.unshift(obj);
break;
case "headers":
this.request.headers.unshift(obj);
break;
default:
break;
}
}
}
},