From 6ac4a0b138905331a0c1f2c5f464d99e0de93d99 Mon Sep 17 00:00:00 2001 From: NagoColer <404213506@qq.com> Date: Mon, 10 Apr 2023 17:48:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=99=BB=E5=BD=95=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/config/SecurityConfiguration.java | 7 +- .../.vscode/extensions.json | 3 - study-project-frontend/index.html | 7 +- study-project-frontend/package-lock.json | 890 ++++++++++++++++++ study-project-frontend/package.json | 5 + study-project-frontend/src/App.vue | 119 +-- study-project-frontend/src/assets/base.css | 74 -- study-project-frontend/src/assets/logo.svg | 1 - study-project-frontend/src/assets/main.css | 35 - .../src/components/HelloWorld.vue | 43 - .../src/components/TheWelcome.vue | 86 -- .../src/components/WelcomeItem.vue | 85 -- .../src/components/icons/IconCommunity.vue | 7 - .../components/icons/IconDocumentation.vue | 7 - .../src/components/icons/IconEcosystem.vue | 7 - .../src/components/icons/IconSupport.vue | 7 - .../src/components/icons/IconTooling.vue | 19 - study-project-frontend/src/main.js | 2 +- study-project-frontend/src/router/index.js | 15 +- .../src/views/AboutView.vue | 15 - study-project-frontend/src/views/HomeView.vue | 9 - study-project-frontend/vite.config.js | 13 +- 22 files changed, 960 insertions(+), 496 deletions(-) delete mode 100644 study-project-frontend/.vscode/extensions.json delete mode 100644 study-project-frontend/src/assets/base.css delete mode 100644 study-project-frontend/src/assets/logo.svg delete mode 100644 study-project-frontend/src/assets/main.css delete mode 100644 study-project-frontend/src/components/HelloWorld.vue delete mode 100644 study-project-frontend/src/components/TheWelcome.vue delete mode 100644 study-project-frontend/src/components/WelcomeItem.vue delete mode 100644 study-project-frontend/src/components/icons/IconCommunity.vue delete mode 100644 study-project-frontend/src/components/icons/IconDocumentation.vue delete mode 100644 study-project-frontend/src/components/icons/IconEcosystem.vue delete mode 100644 study-project-frontend/src/components/icons/IconSupport.vue delete mode 100644 study-project-frontend/src/components/icons/IconTooling.vue delete mode 100644 study-project-frontend/src/views/AboutView.vue delete mode 100644 study-project-frontend/src/views/HomeView.vue diff --git a/study-project-backend/src/main/java/com/example/config/SecurityConfiguration.java b/study-project-backend/src/main/java/com/example/config/SecurityConfiguration.java index f4f6cdd..f3e37c6 100644 --- a/study-project-backend/src/main/java/com/example/config/SecurityConfiguration.java +++ b/study-project-backend/src/main/java/com/example/config/SecurityConfiguration.java @@ -42,8 +42,6 @@ public class SecurityConfiguration { .and() .logout() .logoutUrl("/api/auth/logout") - .logoutSuccessHandler(this::onAuthenticationSuccess) - .permitAll() .and() .csrf() .disable() @@ -84,10 +82,7 @@ public class SecurityConfiguration { public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException { response.setCharacterEncoding("utf-8"); - if(request.getRequestURI().endsWith("/login")) - response.getWriter().write(JSONObject.toJSONString(RestBean.success("登录成功"))); - else if(request.getRequestURI().endsWith("/logout")) - response.getWriter().write(JSONObject.toJSONString(RestBean.success("退出成功"))); + response.getWriter().write(JSONObject.toJSONString(RestBean.success("登录成功"))); } public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException { diff --git a/study-project-frontend/.vscode/extensions.json b/study-project-frontend/.vscode/extensions.json deleted file mode 100644 index c0a6e5a..0000000 --- a/study-project-frontend/.vscode/extensions.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"] -} diff --git a/study-project-frontend/index.html b/study-project-frontend/index.html index 99f583a..6334178 100644 --- a/study-project-frontend/index.html +++ b/study-project-frontend/index.html @@ -5,9 +5,14 @@