Browse Source

REPORT-58260 组件包安装适配zip

final/10.0
kuangshuai 3 years ago
parent
commit
5aa0bc0821
  1. 5
      designer-form/src/main/java/com/fr/design/mainframe/share/action/InstallComponentAction.java

5
designer-form/src/main/java/com/fr/design/mainframe/share/action/InstallComponentAction.java

@ -120,7 +120,7 @@ public class InstallComponentAction extends UpdateAction {
private boolean containRues(File[] chosenFiles) { private boolean containRues(File[] chosenFiles) {
for (File file : chosenFiles) { for (File file : chosenFiles) {
if (file.getName().endsWith(ReuxUtils.REUS_SUFFIX)) if (ReuxUtils.isReusFile(file))
return true; return true;
} }
return false; return false;
@ -142,8 +142,7 @@ public class InstallComponentAction extends UpdateAction {
return false; return false;
} }
ShareComponentUtils.checkReadMe(); ShareComponentUtils.checkReadMe();
boolean isReus = chosenFile.getName().endsWith(ReuxUtils.REUS_SUFFIX); return ReuxUtils.isReusFile(chosenFile) ? InstallUtils.installReusFile(chosenFile, installTime, failList) : InstallUtils.installReuFile(chosenFile, installTime, failList);
return isReus ? InstallUtils.installReusFile(chosenFile, installTime, failList) : InstallUtils.installReuFile(chosenFile, installTime, failList);
} }
private static class InstallBackInfo { private static class InstallBackInfo {

Loading…
Cancel
Save