fix(接口自动化): 修复另存接口协议错误问题

This commit is contained in:
fit2-zhao 2021-03-24 18:10:22 +08:00
parent 9a6b47051b
commit 637f0ea707
1 changed files with 3 additions and 0 deletions

View File

@ -267,6 +267,9 @@
open(api) {
if (api) {
let data = JSON.parse(JSON.stringify(api));
if (data.protocol === "dubbo://") {
data.protocol = "DUBBO";
}
data.id = getUUID();
this.httpForm = {id: data.id, name: data.name, protocol: data.protocol, path: data.path, method: api.method, userId: getCurrentUser().id, request: data};
this.getMaintainerOptions();