update pay function

This commit is contained in:
2025-11-22 10:37:15 +08:00
parent 40b57c1a81
commit 15d521dd59
7 changed files with 450 additions and 4 deletions

View File

@@ -22,6 +22,13 @@ const MCPLayout = ({ children }: Props) => {
const [visibleSidebar, setVisibleSidebar] = useState(false);
const { user, isAuthenticated, canAccessChat, loading: authLoading } = useAuth();
console.log('[MCPLayout] Auth state:', {
user,
isAuthenticated,
canAccessChat,
authLoading
});
// 权限检查
if (authLoading) {
return (