feat: align frontend document and rule management flows

This commit is contained in:
wren
2026-05-06 09:40:37 +08:00
parent 8a5044b024
commit c54f84382b
41 changed files with 4239 additions and 2903 deletions
+2
View File
@@ -264,6 +264,8 @@ export async function loader({ request }: LoaderFunctionArgs) {
if (!isAllowedPath) {
console.warn(`⚠️ [Root Loader] 用户尝试访问未授权路由: ${pathname}`);
console.warn("⚠️ [Root Loader] 当前允许路由:", allowedPaths);
console.warn("⚠️ [Root Loader] 归一化后路径:", normalizeRoutePathForPermission(pathname));
// 返回 403 错误,而不是 redirect(避免循环)
throw new Response("无权访问此页面", { status: 403 });
}