fix:导出json路径为空是,模块显示id
This commit is contained in:
parent
ab495f21f4
commit
69414cae58
|
@ -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);
|
||||
|
|
|
@ -194,7 +194,7 @@
|
|||
},
|
||||
refresh() {
|
||||
this.list();
|
||||
this.$emit("refresh");
|
||||
this.$emit("refreshTable");
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue