fix: fix bugs

This commit is contained in:
2025-02-26 01:35:37 +08:00
parent 6eba0ac564
commit 5f7bd0de5f
8 changed files with 447 additions and 440 deletions

View File

@@ -114,6 +114,7 @@ export const List = () => {
}),
);
const [codeEdit, setCodeEdit] = useState(false);
const [modal, contextHolder] = Modal.useModal();
const [code, setCode] = useState('');
useEffect(() => {
userStore.getList();
@@ -176,7 +177,7 @@ export const List = () => {
</Tooltip>
<Button
onClick={(e) => {
Modal.confirm({
modal.confirm({
title: 'Delete',
content: 'Are you sure delete this data?',
onOk: () => {
@@ -233,6 +234,7 @@ export const List = () => {
</div>
</div>
<FormModal />
{contextHolder}
</div>
);
};