Переглянути джерело

feat: 首页加载loading效果

周玉环 1 день тому
батько
коміт
c999d003ab

+ 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>
 );