fix(接口自动化) 修复添加认证报错问题

--bug=1006755 --user=赵勇 【接口测试】接口添加认证配置报错 https://www.tapd.cn/55049933/s/1048622
This commit is contained in:
fit2-zhao 2021-09-18 17:48:46 +08:00 committed by fit2-zhao
parent 8712335957
commit 6cf8f3faff
2 changed files with 4 additions and 1 deletions

View File

@ -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([

View File

@ -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";