From 3d3564850cc698e9e06aac8ba31b155a64388023 Mon Sep 17 00:00:00 2001 From: PQZ Date: Fri, 4 Jul 2025 15:38:41 +0800 Subject: [PATCH] 1 --- .../framework/config/SecurityConfig.java | 2 +- dl_vue/src/App.vue | 13 ++++ dl_vue/src/main.js | 2 + dl_vue/src/store/index.js | 2 + dl_vue/src/store/modules/websocket.js | 60 +++++++++++++++++ dl_vue/src/store/websocket.js | 64 +++++++++++++++++++ dl_vue/src/views/login.vue | 1 + 7 files changed, 143 insertions(+), 1 deletion(-) create mode 100644 dl_vue/src/store/modules/websocket.js create mode 100644 dl_vue/src/store/websocket.js diff --git a/dl_admin/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java b/dl_admin/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java index b9459a8..c0cf9cf 100644 --- a/dl_admin/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java +++ b/dl_admin/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java @@ -111,7 +111,7 @@ public class SecurityConfig .authorizeHttpRequests((requests) -> { permitAllUrl.getUrls().forEach(url -> requests.antMatchers(url).permitAll()); // 对于登录login 注册register 验证码captchaImage 允许匿名访问 - requests.antMatchers("/login","/wxLogin", "/register", "/captchaImage","/sys/ueditor/exec").permitAll() + requests.antMatchers("/login","/wxLogin", "/register", "/captchaImage","/sys/ueditor/exec","/ws/asset/**").permitAll() //相关配置参数可匿名访问 .antMatchers("/base/config/getConfigByCode").permitAll() .antMatchers("/base/category/getByCodeInfo").permitAll() diff --git a/dl_vue/src/App.vue b/dl_vue/src/App.vue index 06cd695..7478ac4 100644 --- a/dl_vue/src/App.vue +++ b/dl_vue/src/App.vue @@ -7,10 +7,23 @@