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 765cc68f..23845fb0 100644 --- a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl @@ -364,17 +364,17 @@ if (valid) { that.saveDisabled = true; //判断 - if (that.categoryIdOptions.filter(function (f) { - return f['id'] == that.form.categoryId; - })[0].categoryType == '2' && that.returnIsShow) { - that.$notify({ - title: '提示', - message: '所属栏目不能为封面', - type: 'error' - }); - that.saveDisabled = false; - return; - } + // if (that.categoryIdOptions.filter(function (f) { + // return f['id'] == that.form.categoryId; + // })[0].categoryType == '2' && that.returnIsShow) { + // that.$notify({ + // title: '提示', + // message: '所属栏目不能为封面', + // type: 'error' + // }); + // that.saveDisabled = false; + // return; + // } var data = JSON.parse(JSON.stringify(that.form)); diff --git a/src/main/webapp/WEB-INF/manager/cms/content/index.ftl b/src/main/webapp/WEB-INF/manager/cms/content/index.ftl index d2d42d12..e1174e07 100644 --- a/src/main/webapp/WEB-INF/manager/cms/content/index.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/content/index.ftl @@ -53,7 +53,7 @@ if (data.categoryType == '1') { this.action = ms.manager + "/cms/content/main.do?categoryId=" + data.id; } else if (data.categoryType == '2') { - this.action = ms.manager + "/cms/content/form.do?categoryId=" + data.id + "& type=2"; + this.action = ms.manager + "/cms/content/form.do?categoryId=" + data.id + "&type=2"; //id=0时为最顶级节点全部节点 } else if (data.id == 0){ this.action = ms.manager + "/cms/content/main.do";