diff --git a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl
index 09b47f53..6d4b61eb 100644
--- a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl
+++ b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl
@@ -569,12 +569,20 @@
},
//categoryImg文件上传完成回调
categoryImgSuccess: function (response, file, fileList) {
- this.form.categoryImg.push({
- url: file.url,
- name: file.name,
- path: response,
- uid: file.uid
- });
+ if(response.result){
+ this.form.categoryImg.push({
+ url: file.url,
+ name: file.name,
+ path: response.data,
+ uid: file.uid
+ });
+ }else {
+ this.$notify({
+ title: response.msg,
+ type: 'warning'
+ });
+ }
+
},
//上传超过限制
categoryImghandleExceed: function (files, fileList) {
diff --git a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl
index 23845fb0..9b2aa92e 100644
--- a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl
+++ b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl
@@ -42,7 +42,8 @@
所属栏目
+ 不能为链接和封面类型新建文章