From 48629108e0549573b3c4a16d66ea9b885738ed62 Mon Sep 17 00:00:00 2001 From: yezian Date: Fri, 28 Jun 2024 01:06:40 +0800 Subject: [PATCH] revert 3fd959ecff417b4c719426d191c7984156c142c3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit revert revert 6a507b39eecdffca97c3a4ee34bf34056b81dad1 revert ios暂时禁止下载 --- app/page.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/page.jsx b/app/page.jsx index 0599ba0..62953cc 100644 --- a/app/page.jsx +++ b/app/page.jsx @@ -4,6 +4,7 @@ import React, { useState, useEffect } from "react"; import InOtherApp from "@/components/InOtherApp"; import Footer from "@/components/Footer"; import Link from "next/link"; +import { Toast } from "antd-mobile"; export default function Home() { const [deviceType, setDeviceType] = useState(""); @@ -157,7 +158,13 @@ export default function Home() { deviceType === "ios" ? "itms-services://?action=download-manifest&url=https://filecdn01.tiefen.fun/appdownload/ironfans.plist" : "https://filecdn01.tiefen.fun/appdownload/ironfans1.4.6.apk"; - window.location.href = url; + if (deviceType !== "ios") { + window.location.href = url; + return; + } + Toast.show({ + content: "IOS用户暂时无法安装,请24小时后再试", + }); }} > 安装