mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	fix 修复 isLogin 方法抛异常无法正常返回值问题
This commit is contained in:
		@@ -192,7 +192,11 @@ public class LoginHelper {
 | 
			
		||||
     * @return 结果
 | 
			
		||||
     */
 | 
			
		||||
    public static boolean isLogin() {
 | 
			
		||||
        return getLoginUser() != null;
 | 
			
		||||
        try {
 | 
			
		||||
            return getLoginUser() != null;
 | 
			
		||||
        } catch (Exception e) {
 | 
			
		||||
            return false;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user