Browse Source

[update] message:1.恢复移动端路由认证

kelei 6 tháng trước cách đây
mục cha
commit
48e5c648bc

+ 3 - 3
admin/src/main/java/com/flyer/foster/config/SaTokenConfigure.java

@@ -25,9 +25,9 @@ public class SaTokenConfigure implements WebMvcConfigurer {
                     .notMatch("/admin/user/login", "/admin/user/generate-key")
                     .check(r -> StpUtil.checkLogin());
 
-//            SaRouter.match("/app/**")
-//                    .notMatch("/app/user/login")
-//                    .check(r -> StpAppUtil.checkLogin());
+            SaRouter.match("/app/**")
+                    .notMatch("/app/user/login")
+                    .check(r -> StpAppUtil.checkLogin());
 
 
         })).addPathPatterns("/**");