在登录页的js加上:

1 if(window !=top){  
2     top.location.href = location.href;  
3 }