diff --git a/src/main/java/net/mingsoft/cms/action/ContentAction.java b/src/main/java/net/mingsoft/cms/action/ContentAction.java index 46bd8a0e..2e1fda41 100644 --- a/src/main/java/net/mingsoft/cms/action/ContentAction.java +++ b/src/main/java/net/mingsoft/cms/action/ContentAction.java @@ -123,9 +123,9 @@ public class ContentAction extends BaseAction { */ @ApiOperation(value = "根据封面获取文章列表接口") @ApiImplicitParam(name = "categoryId", value = "分类编号", required =true,paramType="query") - @GetMapping("/getByFengMian") + @GetMapping("/getFromFengMian") @ResponseBody - public ResultData getByFengMian(@ModelAttribute @ApiIgnore ContentEntity content){ + public ResultData getFromFengMian(@ModelAttribute @ApiIgnore ContentEntity content){ if(content.getCategoryId() == null) { return ResultData.build().error(); } 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 55188ea1..9fe1ac64 100644 --- a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl @@ -525,9 +525,9 @@ }); }, //根据封面获取当前文章 - getByFengMian: function (categoryId) { + getFromFengMian: function (categoryId) { var that = this; - ms.http.get(ms.manager + "/cms/content/getByFengMian.do", { + ms.http.get(ms.manager + "/cms/content/getFromFengMian.do", { "categoryId": categoryId }).then(function (res) { if (res.result) { @@ -680,7 +680,7 @@ this.get(this.form.id); } if (this.type) { - this.getByFengMian(this.form.categoryId); + this.getFromFengMian(this.form.categoryId); this.returnIsShow = false; } }