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/.env.development b/dl_vue/.env.development index 4369277..34d7a41 100644 --- a/dl_vue/.env.development +++ b/dl_vue/.env.development @@ -9,3 +9,6 @@ VUE_APP_BASE_API = '/dev-api' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true + +# websocket +VUE_APP_WEBSOCKET = 'ws://localhost:8099/ws/asset/' diff --git a/dl_vue/.env.production b/dl_vue/.env.production index c02750e..c760d7b 100644 --- a/dl_vue/.env.production +++ b/dl_vue/.env.production @@ -6,3 +6,6 @@ ENV = 'production' # 通告快接管理后台/生产环境 VUE_APP_BASE_API = 'https://www.ddtg.site/noticeApi' + +# websocket +VUE_APP_WEBSOCKET = 'ws://localhost:8099/ws/asset/' diff --git a/dl_vue/.env.staging b/dl_vue/.env.staging index f4d8776..690111f 100644 --- a/dl_vue/.env.staging +++ b/dl_vue/.env.staging @@ -10,3 +10,6 @@ ENV = 'staging' # 成事达管理平台/测试环境 VUE_APP_BASE_API = '/stage-api' + +# websocket +VUE_APP_WEBSOCKET = 'ws://localhost:8099/ws/asset/' diff --git a/dl_vue/src/App.vue b/dl_vue/src/App.vue index 836534a..b3ae18f 100644 --- a/dl_vue/src/App.vue +++ b/dl_vue/src/App.vue @@ -7,10 +7,23 @@