添加全局loading

This commit is contained in:
hanhh
2021-09-18 15:08:45 +08:00
parent 6c87634bb3
commit 698c463c3a
4 changed files with 35 additions and 21 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
import React, { useEffect, useState } from 'react';
import { Typography, Input, Form, Button, Spin, message } from 'antd';
import { Typography, Input, Form, Button, message } from 'antd';
import { request } from '@/utils/http';
import config from '@/utils/config';
import { history } from 'umi';
import QRCode from 'qrcode.react';
import { PageLoading } from '@ant-design/pro-layout';
const { Title, Link } = Typography;
@@ -146,7 +147,7 @@ const SecuritySettings = ({ user, userChange }: any) => {
</Button>
</div>
) : (
<Spin />
<PageLoading />
)}
</>
) : (