From 7146a2e115ef43ba480d7d4712f68b504ecf4461 Mon Sep 17 00:00:00 2001 From: xierz Date: Wed, 25 Nov 2020 14:38:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E8=8C=83=E6=96=B9=E6=B3=95=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/net/mingsoft/cms/action/ContentAction.java | 4 ++-- src/main/webapp/WEB-INF/manager/cms/content/form.ftl | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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; } }