R89 极简化登录与移动入口
这个提交包含在:
@@ -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}</>;
|
||||
|
||||
在新工单中引用
屏蔽一个用户