fix: 修复 TypeScript 编译错误

- 移除未使用的 getGitHubTagUrl 导入
- 移除未使用的 Divider、InfoCircleOutlined 导入
- 移除未使用的 Typography 组件解构
This commit is contained in:
WrBug
2026-01-21 05:18:42 +08:00
parent 696193c571
commit 04629e73b6
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ import {
} from '@ant-design/icons'
import type { MenuProps } from 'antd'
import type { ReactNode } from 'react'
import { removeToken, getVersionText, getGitHubTagUrl, getVersionInfo } from '../utils'
import { removeToken, getVersionText, getVersionInfo } from '../utils'
import { wsManager } from '../services/websocket'
import { apiClient } from '../services/api'
import Logo from './Logo'
+2 -4
View File
@@ -1,17 +1,15 @@
import { useState, useEffect } from 'react'
import { Card, Button, Spin, Progress, Alert, Space, Typography, Divider, Tag, Modal, message } from 'antd'
import { Card, Button, Spin, Progress, Alert, Space, Tag, Modal, message } from 'antd'
import {
CloudUploadOutlined,
ReloadOutlined,
CheckCircleOutlined,
ExclamationCircleOutlined,
InfoCircleOutlined
ExclamationCircleOutlined
} from '@ant-design/icons'
import { apiClient } from '../services/api'
import ReactMarkdown from 'react-markdown'
import remarkGfm from 'remark-gfm'
const { Title, Text, Paragraph } = Typography
interface UpdateInfo {
hasUpdate: boolean