import React, { useState } from 'react'; import { Card, Form, Input, Button, Switch, InputNumber, Select, Row, Col, message, Divider } from 'antd'; import { SaveOutlined, ReloadOutlined } from '@ant-design/icons'; const { Option } = Select; const { TextArea } = Input; const SystemSettings = () => { const [form] = Form.useForm(); const [loading, setLoading] = useState(false); const onFinish = async (values) => { try { setLoading(true); console.log('保存设置:', values); message.success('设置保存成功!'); } catch (error) { message.error('保存失败,请重试'); } finally { setLoading(false); } }; const handleReset = () => { form.resetFields(); message.info('已重置为默认设置'); }; return (

系统设置

配置系统基本参数和功能设置