This commit is contained in:
yj 2024-08-14 09:36:59 +08:00
parent 55269275e3
commit 01107fcf6e
2 changed files with 20 additions and 6 deletions

View File

@ -41,10 +41,15 @@
box-sizing: border-box;
.indexContentTitle {
flex-shrink: 0;
color: white;
font-size: 18px;
font-weight: bold;
display: flex;
align-items: center;
justify-content: space-between;
>span {
flex-shrink: 0;
color: white;
font-size: 18px;
font-weight: bold;
}
}
.indexContentList {

View File

@ -7,6 +7,7 @@ import { GetRoom, PostRomm, GetCheckoutRoomNum, GetRoomRtcToken, GetRoomInfo } f
import ImageUrl from '@/utils/package/ImageUrl'
import { PostRefresh } from '@/api/Login';
import { storage } from '@/utils';
import { RedoOutlined } from '@ant-design/icons';
const Index: React.FC = () => {
const navigate = useNavigate();
const [list, setList] = useState({
@ -114,8 +115,16 @@ const Index: React.FC = () => {
</Button>
</div>
<div className={styles.indexContent}>
<div className={styles.indexContentTitle}>
<div className={`drag ${styles.indexContentTitle}`}>
<span></span>
<RedoOutlined
title='刷新'
style={{
cursor: 'pointer',
transform: 'rotate(-60deg)'
}}
onClick={() => getRoomList()}
/>
</div>
{list.data.length ? <div className={styles.indexContentList}>
{list.data.map((item: any, index: number) => {