Browse Source

REPORT-57147 设计器模版默认预览方式不生效

persist/11.0
Henry.Wang 3 years ago
parent
commit
e7400764b2
  1. 3
      designer-form/src/main/java/com/fr/design/fit/common/TemplateTool.java

3
designer-form/src/main/java/com/fr/design/fit/common/TemplateTool.java

@ -38,6 +38,9 @@ public class TemplateTool {
private static Listener<JTemplate> switchListener = new Listener<JTemplate>() {
@Override
public void on(Event event, JTemplate jTemplate) {
if (!(jTemplate instanceof JForm)) {
return;
}
JFormType currentType = JFormType.OLD_TYPE;
if (AdaptiveSwitchUtil.isSwitchJFromIng()) {
currentType = DesignerUIModeConfig.getInstance().newUIMode() ? JFormType.NEW_TYPE : JFormType.OLD_TYPE;

Loading…
Cancel
Save