This commit is contained in:
Pang
2024-03-10 11:16:33 +08:00
parent b4f2da66be
commit 7014ea176a
73 changed files with 367 additions and 358 deletions

View File

@@ -339,25 +339,22 @@ class IndexController extends InvokeController
$redirectUrl = Base::fillUrl($path);
return <<<EOF
<script>
let t = window.top
let \$A = null
while (t) {
if (t.\$A) {
\$A = t.\$A
break
}
t = t.top
}
if (\$A) {
\$A.eeuiAppSendMessage({
action: 'setPageData',
data: {
titleFixed: true,
urlFixed: true,
window.top.postMessage({
action: "eeuiAppSendMessage",
data: [
{
action: 'setPageData',
data: {
titleFixed: true,
urlFixed: true,
}
},
{
action: 'createTarget',
url: "{$redirectUrl}",
}
});
}
t.location.href = "{$redirectUrl}"
]
}, "*")
</script>
EOF;
}