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;