diff --git a/index.html b/index.html index a680b95..567fff6 100644 --- a/index.html +++ b/index.html @@ -5827,6 +5827,14 @@ saveAndRefresh(); } + // 從網址帶進來的區塊(例如舊的 /permissions 會導成 /?view=permissions)。 + function openViewFromUrl() { + const wanted = new URLSearchParams(location.search).get('view'); + if (!wanted) return; + const target = document.getElementById(wanted); + if (target && target.classList.contains('view')) showView(wanted); + } + window.onload = async () => { applyPreviewUI(); try { @@ -5834,6 +5842,7 @@ if (!await loadBootstrapData()) return; bootApp(); loadPlans(); + openViewFromUrl(); } catch (error) { console.error(error); const banner = document.getElementById('data-source-banner');