在登录页面的js代码加上 if(window !=top){ top.location.href=location.href; } 转载于:https://www.cnblogs.com/xulzong/p/5103281.html