解决方法如下:
<head>
<script>
/**登陆判断是否是子页面跳转到登录页,如果是子页面,则定位到顶层父级页面登录*/
if (window.top != null && window.top.document.URL != document.URL){
window.top.location= document.URL;
}
</script>
</head>
在登录页的中添加上面js代码即可。
解决方法如下:
<head>
<script>
/**登陆判断是否是子页面跳转到登录页,如果是子页面,则定位到顶层父级页面登录*/
if (window.top != null && window.top.document.URL != document.URL){
window.top.location= document.URL;
}
</script>
</head>
在登录页的中添加上面js代码即可。