feat: 首页加载速度优化

This commit is contained in:
CaIon
2024-03-23 20:22:00 +08:00
parent 06c86397e1
commit 58f2cf3a79
6 changed files with 22 additions and 21 deletions

View File

@@ -1,13 +1,9 @@
import React from 'react';
import { Dimmer, Loader, Segment } from 'semantic-ui-react';
import { Spin } from '@douyinfe/semi-ui';
const Loading = ({ prompt: name = 'page' }) => {
return (
<Segment style={{ height: 100 }}>
<Dimmer active inverted>
<Loader indeterminate>加载{name}...</Loader>
</Dimmer>
</Segment>
<Spin style={{height: 100}} spinning={true}>加载{name}...</Spin>
);
};