在登录页面添加如下js
<script type="text/javaScript"> if (window != top) top.location.href = location.href; </script>