diff --git a/app/components/home.tsx b/app/components/home.tsx index ac4c1e3b9..9bfcd45cd 100644 --- a/app/components/home.tsx +++ b/app/components/home.tsx @@ -611,6 +611,7 @@ export function Home() { const [isAllow, setIsAllow] = useState(false); // 白名单状态 const [isRequestErr, setIsRequestErr] = useState(false); // 接口报错状态 const [isLoading, setIsLoading] = useState(false); + const [isNotInLan, setIsNotInLan] = useState(false); // 不在内网 useEffect(() => { getBaseInfo() @@ -631,6 +632,7 @@ export function Home() { } else { const { code, msg } = data; setIsAllow(code === 0); + setIsNotInLan(code === 403); } setIsLoading(false) } @@ -692,7 +694,11 @@ export function Home() { // 接口报错 isRequestErr ? (