看板支援 ?view= 直接打開指定區塊
CI / build (push) Failing after 20s

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
This commit is contained in:
2026-11-25 08:47:17 +00:00
co-authored by Claude Opus 5
parent bd1f6f1cdc
commit 2f813c4691
+9
View File
@@ -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');