|
@@ -39,7 +39,7 @@ const MenuListPage: React.FC = () => { |
|
|
cancelText: '取消', |
|
|
cancelText: '取消', |
|
|
onOk() { |
|
|
onOk() { |
|
|
return new Promise(async (resolve) => { |
|
|
return new Promise(async (resolve) => { |
|
|
const [error, { code, msg} ] = await deletePostApi({ id: menu.id }); |
|
|
|
|
|
|
|
|
const [error, { code, msg} ] = await deletePostApi(menu.id); |
|
|
if(error || code !== 0) { |
|
|
if(error || code !== 0) { |
|
|
antdUtils.message?.open({ type: 'error', content: msg??'操作失败'}) |
|
|
antdUtils.message?.open({ type: 'error', content: msg??'操作失败'}) |
|
|
} else { |
|
|
} else { |
|
|