fix(接口定义): jmeter导入会生成一个空白模块

--bug=1007976 --user=lyh 【接口测试】接口定义-jmeter导入,不选择模块,导入后会生成一个空白模块
https://www.tapd.cn/55049933/s/1070872
This commit is contained in:
shiziyuan9527 2021-11-20 09:59:00 +08:00 committed by shiziyuan9527
parent 3292cac618
commit b002d75fac
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ public class JmeterDefinitionParser extends ApiImportAbstractParser<ApiDefinitio
apiDefinition.setName(element.getName());
apiDefinition.setProjectId(this.projectId);
apiDefinition.setRequest(JSON.toJSONString(element));
if (this.selectModule != null) {
if (this.apiModule != null) {
apiDefinition.setModuleId(this.apiModule.getId());
if (StringUtils.isNotBlank(this.selectModulePath)) {
apiDefinition.setModulePath(this.selectModulePath + "/" + this.apiModule.getName());