更新 root.tsx
This commit is contained in:
1 file changed
+1
-7
@@ -50,13 +50,7 @@ export default function App() {
|
||||
let { i18n } = useTranslation();
|
||||
useChangeLanguage(locale);
|
||||
|
||||
useEffect(() => {
|
||||
if (isInWebView()) {
|
||||
// alert("禁止 WebView 访问");
|
||||
window.location.href = "https://www.oiov.dev";
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
||||
return (
|
||||
<html lang={locale} dir={i18n.dir()}>
|
||||
<head>
|
||||
|
||||
Reference in new issue
Block a user