fix vendor status customer toggles and cps
This commit is contained in:
@@ -398,6 +398,7 @@ export default function App() {
|
||||
can: canPermission,
|
||||
onCreateCustomer: (body) => reloadAfterMutation(() => api.createCustomer(body)),
|
||||
onUpdateCustomer: (id, body) => reloadAfterMutation(() => api.updateCustomer(id, body)),
|
||||
onToggleCustomerStatus: (row) => reloadAfterMutation(() => (row.status === '启用' ? api.disableCustomer(row.id) : api.enableCustomer(row.id))),
|
||||
onDeleteCustomer: (id) => reloadAfterMutation(() => api.deleteCustomer(id)),
|
||||
onRechargeCustomer: (id, body) => rechargeAndApply(() => api.rechargeCustomer(id, body)),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user