Browse Source

REPORT-59143 【设计器适配】模版设置为移动端模版也要支持新旧表单切换

bugfix/11.0
Henry.Wang 3 years ago
parent
commit
91a6242ed0
  1. 6
      designer-form/src/main/java/com/fr/design/fit/common/TemplateTool.java

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

@ -45,10 +45,8 @@ public class TemplateTool {
JFormType currentType = JFormType.OLD_TYPE; JFormType currentType = JFormType.OLD_TYPE;
if (AdaptiveSwitchUtil.isSwitchJFromIng()) { if (AdaptiveSwitchUtil.isSwitchJFromIng()) {
currentType = DesignerUIModeConfig.getInstance().newUIMode() ? JFormType.NEW_TYPE : JFormType.OLD_TYPE; currentType = DesignerUIModeConfig.getInstance().newUIMode() ? JFormType.NEW_TYPE : JFormType.OLD_TYPE;
} else { } else if (isNewJForm(jTemplate)) {
if (isNewJForm(jTemplate)) { currentType = JFormType.NEW_TYPE;
currentType = JFormType.NEW_TYPE;
}
} }
//UI转换 //UI转换
currentType.switchUIMode(); currentType.switchUIMode();

Loading…
Cancel
Save