From 3cffd4066bba229ecd7a80313b0dabdbb9d864c7 Mon Sep 17 00:00:00 2001
From: al <al@cdhncy.com>
Date: Fri, 6 Dec 2024 19:18:14 +0800
Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4ios=E5=A4=B8=E5=85=8B?=
 =?UTF-8?q?=E6=B5=8F=E8=A7=88=E5=99=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/WithAuth/index.js | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

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")));
-- 
2.41.0