fix(web): 清零前端 TS 构建错误 — 31 文件类型修复 + 面包屑 + 超时配置
- 修复 verbatimModuleSyntax 要求的 import type 声明 - 修复未使用导入(Badge/EditOutlined/Space/Input/Switch 等) - 修复 mock.calls 类型注解([string,unknown] → any[]) - 修复 vitest 全局超时和 poolTimeout 配置 - 修复 PageContainer 缺少 onBack prop、MenuInfo children 可选 - 修复 CopilotAlert Badge status info→processing、useCopilotRisk 二次解包 - 修复 articles/doctors 测试 delete 调用缺少 version 参数 - 添加排班管理/预约管理面包屑标题 fallback
This commit is contained in:
@@ -4,10 +4,10 @@ import { CheckOutlined } from '@ant-design/icons';
|
||||
import { listAlerts, dismissInsight } from '../../api/copilot';
|
||||
import type { CopilotInsight } from '../../api/copilot';
|
||||
|
||||
const severityConfig: Record<string, { type: 'success' | 'info' | 'warning' | 'error'; label: string }> = {
|
||||
const severityConfig: Record<string, { type: 'success' | 'processing' | 'warning' | 'error'; label: string }> = {
|
||||
critical: { type: 'error', label: '危急' },
|
||||
warning: { type: 'warning', label: '警告' },
|
||||
info: { type: 'info', label: '提示' },
|
||||
info: { type: 'processing', label: '提示' },
|
||||
};
|
||||
|
||||
export function CopilotAlert() {
|
||||
|
||||
Reference in New Issue
Block a user