fix(ui): 修复登录和并发请求并统一页面展示

调整登录流程和请求处理,统一各中心的表格交互、主题样式和页面展示。
This commit is contained in:
zhanjunhao
2026-11-19 18:58:46 +08:00
parent 9b6eb1c7c4
commit 7908ed53a3
128 changed files with 4672 additions and 5391 deletions
+16 -12
View File
@@ -21,7 +21,8 @@ import { I18N_TECHNICAL_TEXT } from '../../../i18n/technicalText.js';
import { useEffectEvent } from '../../../hooks/common/useEffectEvent';
import React, { useState, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
import { Typography, Card, Empty, Spin, Toast } from '@/components/ui';
import { Typography, Card, Spin, Toast } from '@/components/ui';
import { Button, Empty } from 'antd';
import { IconPlayCircle, IconClock, IconFile } from '@/components/ui/icons';
import { API } from '../../../helpers';
import './VideoTutorial.css';
@@ -114,14 +115,15 @@ const VideoTutorial = () => {
return (
<div className='video-tutorial-empty'>
<Empty
image={
<IconPlayCircle
size='extra-large'
style={{ fontSize: 64, color: 'var(--ui-color-text-3)' }}
/>
image={Empty.PRESENTED_IMAGE_SIMPLE}
description={
<>
<Title heading={5}>{t('暂无视频教程')}</Title>
<Paragraph type='secondary'>
{t('管理员还没有上传视频教程,请查看图文教程')}
</Paragraph>
</>
}
title={t('暂无视频教程')}
description={t('管理员还没有上传视频教程,请查看图文教程')}
/>
</div>
);
@@ -139,12 +141,12 @@ const VideoTutorial = () => {
<div className='video-error'>
<IconPlayCircle size='extra-large' />
<Text type='danger'>{t('视频加载失败')}</Text>
<button
<Button
className='video-retry-btn'
onClick={refreshVideoUrl}
>
{t('点击重试')}
</button>
</Button>
</div>
) : (
<video
@@ -200,9 +202,11 @@ const VideoTutorial = () => {
</Title>
<div className='video-list'>
{videos.map((video, index) => (
<div
<button
type='button'
key={video.id}
className={`video-list-item ${currentVideo?.id === video.id ? 'active' : ''}`}
aria-pressed={currentVideo?.id === video.id}
onClick={() => handleSelectVideo(video)}
>
<div className='video-list-thumbnail'>
@@ -239,7 +243,7 @@ const VideoTutorial = () => {
</Text>
)}
</div>
</div>
</button>
))}
</div>
</div>