parent
6a507b39ee
commit
3fd959ecff
|
@ -4,7 +4,6 @@ import React, { useState, useEffect } from "react";
|
||||||
import InOtherApp from "@/components/InOtherApp";
|
import InOtherApp from "@/components/InOtherApp";
|
||||||
import Footer from "@/components/Footer";
|
import Footer from "@/components/Footer";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { Toast } from "antd-mobile";
|
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const [deviceType, setDeviceType] = useState("");
|
const [deviceType, setDeviceType] = useState("");
|
||||||
|
@ -158,13 +157,7 @@ export default function Home() {
|
||||||
deviceType === "ios"
|
deviceType === "ios"
|
||||||
? "itms-services://?action=download-manifest&url=https://filecdn01.tiefen.fun/appdownload/ironfans.plist"
|
? "itms-services://?action=download-manifest&url=https://filecdn01.tiefen.fun/appdownload/ironfans.plist"
|
||||||
: "https://filecdn01.tiefen.fun/appdownload/ironfans1.4.6.apk";
|
: "https://filecdn01.tiefen.fun/appdownload/ironfans1.4.6.apk";
|
||||||
if (deviceType !== "ios") {
|
window.location.href = url;
|
||||||
window.location.href = url;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Toast.show({
|
|
||||||
content: "IOS用户暂时无法安装,请24小时后再试",
|
|
||||||
});
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
安装
|
安装
|
||||||
|
|
Loading…
Reference in New Issue