rsf-admin/src/page/orders/outStock/OutOrderList.jsx
@@ -223,10 +223,11 @@ const record = useRecordContext(); const notify = useNotify(); const refresh = useRefresh(); const cancelOrder = async (event) => { event.stopPropagation(); const { data: { code, data, msg } } = await request.get(`/outStock/cancel/${record.id}`); console.log(record); const cancelOrder = async () => { console.log(event); const { data: { code, data, msg } } = await request.get(`/outStock/cancel/${record?.id}`); if (code === 200) { notify(msg); refresh()