屏蔽QQ浏览器
This commit is contained in:
parent
b2a04e95fd
commit
2efb38dcdf
|
@ -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: "提示",
|
||||
|
|
Loading…
Reference in New Issue