sgjj %!s(int64=5) %!d(string=hai) anos
pai
achega
d4b7b2b830
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  1. 12 0
      src/main/webapp/WEB-INF/manager/cms/generate/index.ftl

+ 12 - 0
src/main/webapp/WEB-INF/manager/cms/generate/index.ftl

@@ -212,6 +212,12 @@
                             title: '更新成功!',
                             type: 'success'
                         });
+                    }else {
+                        that.$notify({
+                            title: '生成失败',
+                            message:data.msg,
+                            type: 'error'
+                        });
                     }
                 }).catch(function (err) {
                     that.$notify({
@@ -236,6 +242,12 @@
                             title: '更新成功!',
                             type: 'success'
                         });
+                    }else {
+                        that.$notify({
+                            title: '生成失败!',
+                            message:data.msg,
+                            type: 'error'
+                        });
                     }
                 }).catch(function (err) {
                     that.$notify({