浏览代码

feat: 首页加载loading效果

周玉环 1 天之前
父节点
当前提交
c999d003ab
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      xinkeaboard-seller/src/components/PageLoading/index.js

+ 5 - 4
xinkeaboard-seller/src/components/PageLoading/index.js

@@ -1,9 +1,10 @@
-import React from 'react';
-import { Spin } from 'antd';
+import React from "react";
+import { Spin } from "antd";
 
 // loading components from code split
 // https://umijs.org/plugin/umi-plugin-react.html#dynamicimport
 export default () => (
-  <div style={{ paddingTop: 100, textAlign: 'center' }}>
-  </div>
+  <Spin>
+    <div style={{ paddingTop: 100, textAlign: "center" }} />
+  </Spin>
 );