mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-12-17 17:41:15 +08:00
Update sso-home-jump.md
未登录应该为!
This commit is contained in:
@@ -42,7 +42,7 @@ public class HomeController {
|
||||
@RequestMapping("/home")
|
||||
public Object index() {
|
||||
// 如果未登录,则先去登录
|
||||
if(StpUtil.isLogin()) {
|
||||
if(!StpUtil.isLogin()) {
|
||||
return SaHolder.getResponse().redirect("/sso/auth");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user