mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
Remove suspense fallback loading.
This commit is contained in:
parent
89df80baca
commit
c532a5d54d
@ -18,7 +18,7 @@ import {Helmet} from "react-helmet";
|
|||||||
import * as Setting from "./Setting";
|
import * as Setting from "./Setting";
|
||||||
import {StyleProvider, legacyLogicalPropertiesTransformer} from "@ant-design/cssinjs";
|
import {StyleProvider, legacyLogicalPropertiesTransformer} from "@ant-design/cssinjs";
|
||||||
import {GithubOutlined, InfoCircleFilled, ShareAltOutlined} from "@ant-design/icons";
|
import {GithubOutlined, InfoCircleFilled, ShareAltOutlined} from "@ant-design/icons";
|
||||||
import {Alert, Button, ConfigProvider, Drawer, FloatButton, Layout, Result, Spin, Tooltip} from "antd";
|
import {Alert, Button, ConfigProvider, Drawer, FloatButton, Layout, Result, Tooltip} from "antd";
|
||||||
import {Route, Switch, withRouter} from "react-router-dom";
|
import {Route, Switch, withRouter} from "react-router-dom";
|
||||||
import CustomGithubCorner from "./common/CustomGithubCorner";
|
import CustomGithubCorner from "./common/CustomGithubCorner";
|
||||||
import * as Conf from "./Conf";
|
import * as Conf from "./Conf";
|
||||||
@ -366,10 +366,7 @@ class App extends Component {
|
|||||||
<FloatButton.BackTop />
|
<FloatButton.BackTop />
|
||||||
<CustomGithubCorner />
|
<CustomGithubCorner />
|
||||||
{
|
{
|
||||||
<Suspense fallback={
|
<Suspense fallback={null}>
|
||||||
<div className="loginBackground" style={{height: "100vh"}}>
|
|
||||||
<Spin size="large" spinning={true} tip={i18next.t("login:Loading")} style={{margin: "0 auto"}} />
|
|
||||||
</div>}>
|
|
||||||
<Layout id="parent-area">
|
<Layout id="parent-area">
|
||||||
<ManagementPage
|
<ManagementPage
|
||||||
account={this.state.account}
|
account={this.state.account}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user