fix(接口自动化) 修复添加认证报错问题
--bug=1006755 --user=赵勇 【接口测试】接口添加认证配置报错 https://www.tapd.cn/55049933/s/1048622
This commit is contained in:
parent
8712335957
commit
6cf8f3faff
|
@ -70,7 +70,7 @@ export const TYPE_TO_C = new Map([
|
|||
['ThreadGroup', "io.metersphere.api.dto.definition.request.MsThreadGroup"],
|
||||
['DNSCacheManager', "io.metersphere.api.dto.definition.request.dns.MsDNSCacheManager"],
|
||||
['DebugSampler', "io.metersphere.api.dto.definition.request.sampler.MsDebugSampler"],
|
||||
|
||||
['AuthManager', "io.metersphere.api.dto.definition.request.auth.MsAuthManager"]
|
||||
])
|
||||
|
||||
export const PLUGIN_ELEMENTS = new Map([
|
||||
|
|
|
@ -224,6 +224,9 @@
|
|||
this.setParameters(data);
|
||||
let bodyFiles = this.getBodyUploadFiles(data);
|
||||
data.requestId = data.request.id;
|
||||
if(data.request) {
|
||||
this.sort(data.request.hashTree);
|
||||
}
|
||||
this.$fileUpload(this.reqUrl, null, bodyFiles, data, () => {
|
||||
this.$success(this.$t('commons.save_success'));
|
||||
this.reqUrl = "/api/definition/update";
|
||||
|
|
Loading…
Reference in New Issue