Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user