diff --git a/src/components/BindKaiqiuAccount.tsx b/src/components/BindKaiqiuAccount.tsx index f47c680..a4d1fd1 100644 --- a/src/components/BindKaiqiuAccount.tsx +++ b/src/components/BindKaiqiuAccount.tsx @@ -1,6 +1,6 @@ import { useRequest } from "ahooks"; import { useAuthHeaders } from "../hooks/useAuthHeaders"; -import { Alert, App, Button, Drawer, Flex, Form, Input, Spin, Typography } from "antd"; +import { Alert, App, Button, Drawer, Flex, Form, Input, Skeleton, Space, Spin, Typography } from "antd"; import { ExportOutlined, LinkOutlined } from "@ant-design/icons"; import { useCallback, useState } from "react"; import { useNavigate } from "react-router"; @@ -46,13 +46,21 @@ export const BindKaiqiuAccount = () => { }); }, [modal]); const navigate = useNavigate(); - if (isBindReq.data?.isBinded === undefined) return null; + if (isBindReq.data?.isBinded === undefined) { + return ( + + ); + }; if (isBindReq.data?.isBinded) { return ( - navigate(`/profile/${isBindReq.data?.uid}`)}> - UID: {isBindReq.data?.uid ?? '-'} - - + ); } return (