diff --git a/frontend/src/pages/SystemSettings.tsx b/frontend/src/pages/SystemSettings.tsx index 148d0f7..af1577b 100644 --- a/frontend/src/pages/SystemSettings.tsx +++ b/frontend/src/pages/SystemSettings.tsx @@ -60,14 +60,6 @@ const SystemSettings: React.FC = () => { const [proxyCheckResult, setProxyCheckResult] = useState(null) const [currentProxyConfig, setCurrentProxyConfig] = useState(null) - // 第五部分:系统更新 - const [updateChecking, setUpdateChecking] = useState(false) - const [updateInfo, setUpdateInfo] = useState(null) - const [updateProgress, setUpdateProgress] = useState(0) - const [updateMessage, setUpdateMessage] = useState('') - const [isUpdating, setIsUpdating] = useState(false) - const [currentVersion, setCurrentVersion] = useState('') - useEffect(() => { // 初始化多语言设置 const savedLanguage = localStorage.getItem('i18n_language') || 'auto' @@ -78,8 +70,6 @@ const SystemSettings: React.FC = () => { fetchNotificationConfigs() fetchSystemConfig() fetchProxyConfig() - fetchCurrentVersion() - fetchUpdateStatus() }, []) // ==================== 第一部分:多语言 ==================== diff --git a/frontend/src/services/api.ts b/frontend/src/services/api.ts index 7ed9c24..6c263e8 100644 --- a/frontend/src/services/api.ts +++ b/frontend/src/services/api.ts @@ -715,5 +715,8 @@ export const apiService = { } } +// 导出 apiClient 供需要直接使用 axios 实例的组件使用 +export { apiClient } + export default apiService