From 7c49dc4b862e022f55f1e0c6e5c5f9ea0ff5e46f Mon Sep 17 00:00:00 2001 From: bunny <1319900154@qq.com> Date: Sun, 13 Jul 2025 21:16:13 +0800 Subject: [PATCH] =?UTF-8?q?:wrench:=20=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/spring/step2/controller/WebController.java | 6 +++--- .../step-2/src/main/resources/templates/index.html | 2 +- .../main/resources/templates/{login.html => loginPage.html} | 0 .../resources/templates/{user/index.html => userPage.html} | 5 +---- 4 files changed, 5 insertions(+), 8 deletions(-) rename spring-security/step-2/src/main/resources/templates/{login.html => loginPage.html} (100%) rename spring-security/step-2/src/main/resources/templates/{user/index.html => userPage.html} (97%) diff --git a/spring-security/step-2/src/main/java/com/spring/step2/controller/WebController.java b/spring-security/step-2/src/main/java/com/spring/step2/controller/WebController.java index ac4a01d..2d4d70a 100644 --- a/spring-security/step-2/src/main/java/com/spring/step2/controller/WebController.java +++ b/spring-security/step-2/src/main/java/com/spring/step2/controller/WebController.java @@ -11,13 +11,13 @@ public class WebController { return "index"; } - @GetMapping("/login-page") + @GetMapping("/login") public String showLoginPage() { - return "login"; + return "loginPage"; } @GetMapping("/user") public String showUserPage() { - return "user/index"; + return "userPage"; } } diff --git a/spring-security/step-2/src/main/resources/templates/index.html b/spring-security/step-2/src/main/resources/templates/index.html index ae1071b..ded9c55 100644 --- a/spring-security/step-2/src/main/resources/templates/index.html +++ b/spring-security/step-2/src/main/resources/templates/index.html @@ -382,7 +382,7 @@
  • 文档
  • API 文档
  • Swagger UI
  • -
  • 登录
  • +
  • 登录
  • diff --git a/spring-security/step-2/src/main/resources/templates/login.html b/spring-security/step-2/src/main/resources/templates/loginPage.html similarity index 100% rename from spring-security/step-2/src/main/resources/templates/login.html rename to spring-security/step-2/src/main/resources/templates/loginPage.html diff --git a/spring-security/step-2/src/main/resources/templates/user/index.html b/spring-security/step-2/src/main/resources/templates/userPage.html similarity index 97% rename from spring-security/step-2/src/main/resources/templates/user/index.html rename to spring-security/step-2/src/main/resources/templates/userPage.html index 0173748..2414022 100644 --- a/spring-security/step-2/src/main/resources/templates/user/index.html +++ b/spring-security/step-2/src/main/resources/templates/userPage.html @@ -159,10 +159,7 @@ async onSearch() { const {pageNo, pageSize} = this.searchForm; // 查询数据 - const {data, message} = await axiosInstance.get(`/user/${pageNo}/${pageSize}`, {params: this.form}) - - // 提示加载成功 - antd.message.success(message); + const {data} = await axiosInstance.get(`/user/${pageNo}/${pageSize}`, {params: this.form}) // 赋值数据 this.userList = data.list;