屏蔽QQ浏览器

This commit is contained in:
al 2024-12-13 19:46:30 +08:00
parent b2a04e95fd
commit 2efb38dcdf
1 changed files with 5 additions and 3 deletions

View File

@ -9,12 +9,14 @@ import { Dialog } from "antd-mobile";
export default function WithAuth(WrappedComponent) {
const router = useRouter();
const pathname = usePathname();
const searchParams = useSearchParams();
useEffect(() => {
var ua = navigator.userAgent.toLowerCase();
if (ua.indexOf("quark") > -1 && ua.indexOf("iphone") > -1) {
const ua = navigator.userAgent.toLowerCase();
if (
(ua.indexOf("mqqbrowser") > -1 || ua.indexOf("quark") > -1) &&
ua.indexOf("iphone") > -1
) {
// 夸克浏览器
Dialog.show({
title: "提示",