From 649edf31f90a033b8f8d285bdeffcd12c6b525d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=E7=A3=8A?= <294531121@qq.com> Date: Thu, 8 Apr 2021 15:36:59 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-50744=20=E5=9C=A8FineKit=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=A0=B9=E6=8D=AEJTemplate=E5=AF=B9=E8=B1=A1=E8=8E=B7?= =?UTF-8?q?=E5=8F=96templateId=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/fanruan/api/design/DesignKit.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/fanruan/api/design/DesignKit.java b/src/main/java/com/fanruan/api/design/DesignKit.java index b203735..d7f9768 100644 --- a/src/main/java/com/fanruan/api/design/DesignKit.java +++ b/src/main/java/com/fanruan/api/design/DesignKit.java @@ -74,6 +74,10 @@ public class DesignKit { return getCurrentEditingTemplate().getTarget().getTemplateID(); } + public static String getTemplateId(JTemplate template) { + return template.getTarget().getTemplateID(); + } + /** * 获取设计器ID *