过滤ios夸克浏览器
This commit is contained in:
parent
6e87a6776b
commit
3cffd4066b
|
@ -10,6 +10,31 @@ export default function WithAuth(WrappedComponent) {
|
|||
|
||||
const pathname = usePathname();
|
||||
const searchParams = useSearchParams();
|
||||
useEffect(() => {
|
||||
var ua = navigator.userAgent.toLowerCase();
|
||||
if (ua.indexOf("quark") > -1 && ua.indexOf("iphone") > -1) {
|
||||
// 夸克浏览器
|
||||
Dialog.show({
|
||||
title: "提示",
|
||||
content: "暂时不支持此浏览器,请使用Safari访问铁粉空间!",
|
||||
// buttonText: "确认",
|
||||
bodyStyle: {
|
||||
maxHeight: "none",
|
||||
width: "80vw",
|
||||
position: "fixed",
|
||||
top: "200px",
|
||||
left: "10vw",
|
||||
"--text-color": "#fff",
|
||||
color: "#fff",
|
||||
},
|
||||
// cancelText:"确认",
|
||||
// confirmText:"取消",
|
||||
style: {
|
||||
"--text-color": "#fff",
|
||||
},
|
||||
});
|
||||
}
|
||||
}, []);
|
||||
useEffect(() => {
|
||||
if (searchParams.get("inviter")) {
|
||||
save("inviter", Number(searchParams.get("inviter")));
|
||||
|
|
Loading…
Reference in New Issue