R89 极简化登录与移动入口

这个提交包含在:
2026-05-05 18:23:19 +08:00
父节点 4363232fd9
当前提交 bf6deac6d0
共修改 7 个文件,包含 105 行新增和 116 行删除
+2 -1
查看文件
@@ -2,6 +2,7 @@ import type { PropsWithChildren } from "react";
import { Navigate, useLocation } from "react-router-dom";
import { useAuth } from "../auth/AuthContext";
import { hasAnyPermission } from "../auth/permissions";
import { resolveDefaultWorkspacePath } from "../lib/runtimeContext";
import { isOfflineSnapshotAllowedPath } from "../pwa";
function FullPageLoading() {
@@ -55,7 +56,7 @@ export function GuestOnly({ children }: PropsWithChildren) {
if (mustChangePassword) {
return <Navigate to="/change-password" replace />;
}
return <Navigate to="/dashboard" replace />;
return <Navigate to={resolveDefaultWorkspacePath()} replace />;
}
return <>{children}</>;