optimize setting

This commit is contained in:
sijinhui 2024-04-25 09:57:16 +08:00
parent a5f1f6ab22
commit 226ec84852

View File

@ -126,7 +126,7 @@ function SettingForm() {
title: "action", title: "action",
dataIndex: "", dataIndex: "",
key: "key", key: "key",
render: (_, record) => ( render: (_: string, record: Setting) => (
<Space size="small"> <Space size="small">
<a type="link" onClick={() => handleEdit("PUT", record)}> <a type="link" onClick={() => handleEdit("PUT", record)}>
@ -152,31 +152,4 @@ function SettingForm() {
); );
} }
// const EditFormModal = ({ visible, onClose, onSubmit, initialData }) => {
// const [formData, setFormData] = useState(initialData);
// const handleFormChange = (changeVlaue, allValues) => {
// setFormData(allValues);
// };
//
// const handleSubmit = () => {
// onSubmit(formData);
// onClose();
// }
//
// return (
// <Modal
// title="编辑设置"
// open={visible}
// onCancel={onClose}
// footer={[
// <Button key="cancel" onClick={onClose}>取消</Button>,
// <Button key="submit" type="primary" onClick={handleSubmit}>提交</Button>,
// ]}
// >
// 123
// </Modal>
// )
//
// }
export default SettingForm; export default SettingForm;