在登陆页展示之前加上如下代码
if (window != top) {
top.location.href = location.href;
}
本文提供了一段用于浏览器窗口跳转的 JavaScript 代码片段,确保子窗口能返回到顶层窗口,适用于网页登录等场景。
if (window != top) {
top.location.href = location.href;
}

被折叠的 条评论
为什么被折叠?