no message

This commit is contained in:
kuaifan 2025-08-10 00:18:25 +08:00
parent 0af967d6c9
commit 40f8ec77b8
3 changed files with 19 additions and 2 deletions

View File

@ -18,7 +18,7 @@
<body> <body>
<div id="app"> <div id="app" data-preload="false">
<div class="app-view-loading no-dark-content"> <div class="app-view-loading no-dark-content">
<div> <div>
<div>PAGE LOADING</div> <div>PAGE LOADING</div>
@ -33,6 +33,14 @@
</div> </div>
</div> </div>
<script>
setTimeout(function () {
if (document.getElementById("app")?.getAttribute("data-preload") === "false") {
window.location.reload();
}
}, 6000);
</script>
<!--script--> <!--script-->
</body> </body>

View File

@ -314,6 +314,8 @@ const $init = async () => {
} }
const $preload = async () => { const $preload = async () => {
document.getElementById("app")?.setAttribute("data-preload", "true")
if ($A.isEEUIApp) { if ($A.isEEUIApp) {
const requireTime = new Date().getTime(); const requireTime = new Date().getTime();
while (typeof requireModuleJs !== "function") { while (typeof requireModuleJs !== "function") {

View File

@ -34,7 +34,7 @@
<body> <body>
@extends('ie') @extends('ie')
<div id="app"> <div id="app" data-preload="false">
<div class="app-view-loading no-dark-content"> <div class="app-view-loading no-dark-content">
<div> <div>
<div>PAGE LOADING</div> <div>PAGE LOADING</div>
@ -49,6 +49,13 @@
</div> </div>
</div> </div>
<script>
setTimeout(function () {
if (document.getElementById("app")?.getAttribute("data-preload") === "false") {
window.location.reload();
}
}, 6000);
</script>
<script type="module" src="{{$script}}"></script> <script type="module" src="{{$script}}"></script>
</body> </body>
</html> </html>