[DOCS] 更新 RBAC 實作規範與角色初始化流程建議
All checks were successful
star-cloud-deploy-demo / deploy-demo (push) Successful in 55s
All checks were successful
star-cloud-deploy-demo / deploy-demo (push) Successful in 55s
This commit is contained in:
@@ -25,6 +25,22 @@
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
</head>
|
||||
<body class="bg-gray-50 dark:bg-[#0f172a] antialiased font-sans h-full selection:bg-indigo-100 dark:selection:bg-indigo-900/40" x-data="{ sidebarOpen: false, userDropdownOpen: false }">
|
||||
<!-- Option A: Loading Screen -->
|
||||
<x-loading-screen />
|
||||
|
||||
<!-- Option B: Top Progress Bar -->
|
||||
<div id="top-loading-bar" class="top-loading-bar"></div>
|
||||
|
||||
<script>
|
||||
// 僅保留最基本的導航列觸發,不使用全螢幕遮罩防止卡死
|
||||
window.addEventListener('beforeunload', () => {
|
||||
document.getElementById('top-loading-bar').classList.add('loading');
|
||||
});
|
||||
|
||||
window.addEventListener('pageshow', () => {
|
||||
document.getElementById('top-loading-bar').classList.remove('loading');
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Sidebar Overlay (Mobile) -->
|
||||
<div x-show="sidebarOpen"
|
||||
|
||||
Reference in New Issue
Block a user