优化初次加载loading

This commit is contained in:
none 2023-03-23 17:39:47 +08:00
parent 6b047fabbf
commit bb81361be9
2 changed files with 10 additions and 3 deletions

View File

@ -0,0 +1,6 @@
.loading-parent-box {
width: 100vd;
height: 100vh;
text-align: center;
line-height: 100vh;
}

View File

@ -1,10 +1,11 @@
import { Spin } from "antd";
import styles from "./index.module.less";
const LoadingPage = () => {
return (
<>
<Spin />
</>
<div className={styles["loading-parent-box"]}>
<Spin size="large" />
</div>
);
};