mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 16:39:33 +08:00
优化初次加载loading
This commit is contained in:
6
src/pages/loading/index.module.less
Normal file
6
src/pages/loading/index.module.less
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
.loading-parent-box {
|
||||||
|
width: 100vd;
|
||||||
|
height: 100vh;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 100vh;
|
||||||
|
}
|
||||||
@@ -1,10 +1,11 @@
|
|||||||
import { Spin } from "antd";
|
import { Spin } from "antd";
|
||||||
|
import styles from "./index.module.less";
|
||||||
|
|
||||||
const LoadingPage = () => {
|
const LoadingPage = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<div className={styles["loading-parent-box"]}>
|
||||||
<Spin />
|
<Spin size="large" />
|
||||||
</>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user