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();
|
List<ApiDefinitionResult> data = apiDefinitionImport.getData();
|
||||||
data.forEach(apiDefinition -> {
|
data.forEach(apiDefinition -> {
|
||||||
String id = UUID.randomUUID().toString();
|
String id = UUID.randomUUID().toString();
|
||||||
// apiDefinition.setModuleId(null);
|
if (StringUtils.isBlank(apiDefinition.getModulePath())) {
|
||||||
|
apiDefinition.setModuleId(null);
|
||||||
|
}
|
||||||
parseModule(apiDefinition, importRequest.isSaved());
|
parseModule(apiDefinition, importRequest.isSaved());
|
||||||
apiDefinition.setId(id);
|
apiDefinition.setId(id);
|
||||||
apiDefinition.setProjectId(this.projectId);
|
apiDefinition.setProjectId(this.projectId);
|
||||||
|
|
|
@ -194,7 +194,7 @@
|
||||||
},
|
},
|
||||||
refresh() {
|
refresh() {
|
||||||
this.list();
|
this.list();
|
||||||
this.$emit("refresh");
|
this.$emit("refreshTable");
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue