feat: fix compatibility with lower version browsers like Chrome 87 (#1578)

This commit is contained in:
imp2002
2023-02-22 20:57:57 +08:00
committed by GitHub
parent 7e0ea0b8d9
commit 26e87b0d98
2 changed files with 7 additions and 3 deletions

View File

@ -16,6 +16,7 @@ import React, {Component} from "react";
import "./App.less";
import {Helmet} from "react-helmet";
import * as Setting from "./Setting";
import {StyleProvider} from "@ant-design/cssinjs";
import {BarsOutlined, DownOutlined, InfoCircleFilled, LogoutOutlined, SettingOutlined} from "@ant-design/icons";
import {Alert, Avatar, Button, Card, ConfigProvider, Drawer, Dropdown, FloatButton, Layout, Menu, Result} from "antd";
import {Link, Redirect, Route, Switch, withRouter} from "react-router-dom";
@ -729,9 +730,11 @@ class App extends Component {
},
algorithm: Setting.getAlgorithm(this.state.themeAlgorithm),
}}>
{
this.renderPage()
}
<StyleProvider hashPriority="high">
{
this.renderPage()
}
</StyleProvider>
</ConfigProvider>
</React.Fragment>
);