Merge remote-tracking branch 'origin/feature-20240104' into feature-20240104

master
elliott 2 years ago
commit 116a17559c

@ -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());
}

Loading…
Cancel
Save