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 ? (

服务出了点问题~

- ) : // 不在企业微信 + ) : + // 不在内网 + isNotInLan ? +

请在公司内网使用,无线连接到ZKT-Office或VPN连接

: + // 不在企业微信 !isWorkWechat() ? (

请在企业微信里使用ChatGPT,路径:企业微信--工作台--ChatGPT

) : // 不在白名单