fix:导出json路径为空是,模块显示id

This commit is contained in:
chenjianxing 2020-12-31 11:22:51 +08:00
parent ab495f21f4
commit 69414cae58
2 changed files with 4 additions and 2 deletions

View File

@ -41,7 +41,9 @@ public class MsParser extends ApiImportAbstractParser {
List<ApiDefinitionResult> data = apiDefinitionImport.getData();
data.forEach(apiDefinition -> {
String id = UUID.randomUUID().toString();
// apiDefinition.setModuleId(null);
if (StringUtils.isBlank(apiDefinition.getModulePath())) {
apiDefinition.setModuleId(null);
}
parseModule(apiDefinition, importRequest.isSaved());
apiDefinition.setId(id);
apiDefinition.setProjectId(this.projectId);

View File

@ -194,7 +194,7 @@
},
refresh() {
this.list();
this.$emit("refresh");
this.$emit("refreshTable");
},
}
}