|
@@ -3,7 +3,7 @@ import Sidebar from "@/components/Layout/Sidebar";
|
|
|
import Loading from "@/components/Loading";
|
|
|
import { useSystemStore } from "@/stores/useSystemStore";
|
|
|
import { setHtmlFontSize } from "@/utils";
|
|
|
-import { ConfigProvider, Dialog } from "antd-mobile";
|
|
|
+import { ConfigProvider } from "antd-mobile";
|
|
|
import enUS from "antd-mobile/es/locales/en-US";
|
|
|
import { useLocale } from "next-intl";
|
|
|
import { ThemeProviderProps } from "next-themes/dist/types";
|
|
@@ -23,20 +23,20 @@ const initFirebase = () => {
|
|
|
if (document.location.protocol.indexOf("https") === -1) return;
|
|
|
// 浏览器是否支持 且是 pwa
|
|
|
if (!window.Notification) {
|
|
|
- Dialog.alert({
|
|
|
- getContainer: null,
|
|
|
- bodyStyle: { background: "#fff" },
|
|
|
- title: "提示",
|
|
|
- confirmText: "我知道了",
|
|
|
- content: (
|
|
|
- <>
|
|
|
- <div className={"text-center"}>
|
|
|
- <p>当前版本浏览器不支持通知</p>
|
|
|
- <p>请更换或升级浏览器获得更好使用体验</p>
|
|
|
- </div>
|
|
|
- </>
|
|
|
- ),
|
|
|
- });
|
|
|
+ // Dialog.alert({
|
|
|
+ // getContainer: null,
|
|
|
+ // bodyStyle: { background: "#fff" },
|
|
|
+ // title: "提示",
|
|
|
+ // confirmText: "我知道了",
|
|
|
+ // content: (
|
|
|
+ // <>
|
|
|
+ // <div className={"text-center"}>
|
|
|
+ // <p>当前版本浏览器不支持通知</p>
|
|
|
+ // <p>请更换或升级浏览器获得更好使用体验</p>
|
|
|
+ // </div>
|
|
|
+ // </>
|
|
|
+ // ),
|
|
|
+ // });
|
|
|
return;
|
|
|
}
|
|
|
// 是否开启通知
|