mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
optimize setting
This commit is contained in:
parent
a5f1f6ab22
commit
226ec84852
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user