diff --git a/components/WithAuth/index.js b/components/WithAuth/index.js index a6ac499..b40e61b 100644 --- a/components/WithAuth/index.js +++ b/components/WithAuth/index.js @@ -10,6 +10,31 @@ export default function WithAuth(WrappedComponent) { const pathname = usePathname(); const searchParams = useSearchParams(); + useEffect(() => { + var ua = navigator.userAgent.toLowerCase(); + if (ua.indexOf("quark") > -1 && ua.indexOf("iphone") > -1) { + // 夸克浏览器 + Dialog.show({ + title: "提示", + content: "暂时不支持此浏览器,请使用Safari访问铁粉空间!", + // buttonText: "确认", + bodyStyle: { + maxHeight: "none", + width: "80vw", + position: "fixed", + top: "200px", + left: "10vw", + "--text-color": "#fff", + color: "#fff", + }, + // cancelText:"确认", + // confirmText:"取消", + style: { + "--text-color": "#fff", + }, + }); + } + }, []); useEffect(() => { if (searchParams.get("inviter")) { save("inviter", Number(searchParams.get("inviter")));