mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-04-05 17:37:53 +08:00
Merge branch 'dev' of github.com:dromara/sa-token into dev
This commit is contained in:
commit
1f99a2efba
@ -42,7 +42,7 @@ public class HomeController {
|
|||||||
@RequestMapping("/home")
|
@RequestMapping("/home")
|
||||||
public Object index() {
|
public Object index() {
|
||||||
// 如果未登录,则先去登录
|
// 如果未登录,则先去登录
|
||||||
if(StpUtil.isLogin()) {
|
if(!StpUtil.isLogin()) {
|
||||||
return SaHolder.getResponse().redirect("/sso/auth");
|
return SaHolder.getResponse().redirect("/sso/auth");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user