diff --git a/designer-base/src/main/java/com/fr/design/utils/TemplateUtils.java b/designer-base/src/main/java/com/fr/design/utils/TemplateUtils.java index 38eaab2bab..2fac1e903e 100644 --- a/designer-base/src/main/java/com/fr/design/utils/TemplateUtils.java +++ b/designer-base/src/main/java/com/fr/design/utils/TemplateUtils.java @@ -3,6 +3,7 @@ package com.fr.design.utils; import com.fr.base.extension.FileExtension; import com.fr.base.io.BaseBook; import com.fr.design.file.HistoryTemplateListCache; +import com.fr.design.file.TemplateTreePane; import com.fr.design.i18n.Toolkit; import com.fr.design.mainframe.DesignerContext; import com.fr.design.mainframe.JTemplate; @@ -103,6 +104,8 @@ public class TemplateUtils { if (needOpen) { DesignerContext.getDesignerFrame().openTemplate(file); } + // 备份成功刷新下目录树 展示出来备份的模板 + TemplateTreePane.getInstance().refresh(); } catch (Exception e) { SaveFailureHandler.getInstance().process(e); FineLoggerFactory.getLogger().error(e.getMessage(), e);