屏蔽QQ浏览器
This commit is contained in:
parent
b2a04e95fd
commit
2efb38dcdf
|
@ -9,12 +9,14 @@ import { Dialog } from "antd-mobile";
|
||||||
|
|
||||||
export default function WithAuth(WrappedComponent) {
|
export default function WithAuth(WrappedComponent) {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
const searchParams = useSearchParams();
|
const searchParams = useSearchParams();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
var ua = navigator.userAgent.toLowerCase();
|
const ua = navigator.userAgent.toLowerCase();
|
||||||
if (ua.indexOf("quark") > -1 && ua.indexOf("iphone") > -1) {
|
if (
|
||||||
|
(ua.indexOf("mqqbrowser") > -1 || ua.indexOf("quark") > -1) &&
|
||||||
|
ua.indexOf("iphone") > -1
|
||||||
|
) {
|
||||||
// 夸克浏览器
|
// 夸克浏览器
|
||||||
Dialog.show({
|
Dialog.show({
|
||||||
title: "提示",
|
title: "提示",
|
||||||
|
|
Loading…
Reference in New Issue