From f197d31e93e8ecd0db29fc2ba3e39494fc06ee3f Mon Sep 17 00:00:00 2001 From: "agent.develop" Date: Sun, 30 Aug 2026 21:35:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B8=B8=E6=88=8F=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E9=A1=B5=E4=BC=9A=E8=AF=9D/=E7=BB=93=E7=AE=97=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E8=BD=AE=E8=AF=A2=E7=AD=89=E5=AE=B9=E5=99=A8=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E5=86=8D=E6=B8=B2=E6=9F=93=E2=80=94=E2=80=94hub?= =?UTF-8?q?=E6=87=92=E6=9E=84=E5=BB=BA=E4=B8=8B=E4=B8=8D=E5=86=8D=E5=8D=A1?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/game_list.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wwwroot/game_list.js b/wwwroot/game_list.js index 5b6fdf1..b432e5b 100644 --- a/wwwroot/game_list.js +++ b/wwwroot/game_list.js @@ -77,7 +77,14 @@ window.scenseGameList = (function () { })(); (function () { + // hub 内 urlwidget 懒构建:容器元素在 tab 激活后才存在,轮询等容器出现再渲染 + function tryLoad(retries) { + if (!window.scenseGameList) return; + var box = document.getElementById('scense_session_list'); + if (box) { window.scenseGameList.load(); return; } + if (retries > 0) setTimeout(function () { tryLoad(retries - 1); }, 500); + } if (window.bricks && window.bricks.app) { - setTimeout(function () { window.scenseGameList && window.scenseGameList.load(); }, 300); + setTimeout(function () { tryLoad(120); }, 300); } })();