feat: 统一消息提醒
This commit is contained in:
@@ -41,13 +41,12 @@ function handleEdit(row: ErpWarehouseApi.Warehouse) {
|
||||
async function handleDelete(row: ErpWarehouseApi.Warehouse) {
|
||||
const hideLoading = message.loading({
|
||||
content: $t('ui.actionMessage.deleting', [row.name]),
|
||||
key: 'action_key_msg',
|
||||
duration: 0,
|
||||
});
|
||||
try {
|
||||
await deleteWarehouse(row.id!);
|
||||
message.success({
|
||||
content: $t('ui.actionMessage.deleteSuccess', [row.name]),
|
||||
key: 'action_key_msg',
|
||||
});
|
||||
onRefresh();
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user