update
This commit is contained in:
@@ -61,9 +61,7 @@ const {loading, pagination, fetchData} = useTableQuery({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const del = async (id) => {
|
const del = async (id) => {
|
||||||
const {code, msg} = await Api.admin.delADV({
|
const {code, msg} = await Api.admin.delADV(id);
|
||||||
id: id
|
|
||||||
});
|
|
||||||
if (code === 1) Message.success(msg);
|
if (code === 1) Message.success(msg);
|
||||||
await fetchData();
|
await fetchData();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user