vip il y a 5 ans
Parent
commit
8edbedfaf0
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/main/webapp/WEB-INF/manager/cms/content/form.ftl

+ 3 - 0
src/main/webapp/WEB-INF/manager/cms/content/form.ftl

@@ -622,6 +622,9 @@
 
             if (this.form.id) {
                 this.get(this.form.id);
+            }eles{
+                //当前时间
+                this.form.contentDatetime = ms.util.date.fmt(Date.now(),"yyyy-MM-dd hh:mm:ss")
             }
 
             if (this.type) {