diff --git a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/vo/TreeSelect.java b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/vo/TreeSelect.java index 13e367a..f897109 100644 --- a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/vo/TreeSelect.java +++ b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/vo/TreeSelect.java @@ -63,7 +63,11 @@ public class TreeSelect implements Serializable { public TreeSelect(WxScriptTemplate wxScriptTemplate) { this.id = wxScriptTemplate.getId(); - this.label = wxScriptTemplate.getTitile(); + if (wxScriptTemplate.getParentId() == 0) { + this.label = wxScriptTemplate.getScriptName(); + } else { + this.label = wxScriptTemplate.getTitile(); + } this.content = wxScriptTemplate.getContent(); this.children = wxScriptTemplate.getScriptTemplateChildren().stream().map(TreeSelect::new).collect(Collectors.toList()); }