Ver Fonte

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

kelei há 6 meses atrás
pai
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("/**");