ios暂时禁止下载

This commit is contained in:
jueweijue 2024-06-27 03:16:33 +08:00
parent 6a2a635584
commit 6a507b39ee
1 changed files with 8 additions and 1 deletions

View File

@ -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小时后再试",
});
}}
>
安装