shiro登陆问题

shiro长时间不登陆操作系统,项目使用到<frame>标签定义窗口,导致窗口被嵌套。如图:在这里插入图片描述

  • 太丑了。。。。。。

解决:

在登陆页面添加两行代码。

 if (top != window)     
   top.location.href = window.location.href;

猜你喜欢

转载自blog.csdn.net/xhangs/article/details/87298389