Bladeren bron

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

kelei 6 maanden geleden
bovenliggende
commit
48e5c648bc
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      admin/src/main/java/com/flyer/foster/config/SaTokenConfigure.java

+ 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("/**");