fix: 🧩 菜单栏删除功能

This commit is contained in:
Bunny 2024-10-25 00:12:28 +08:00
parent 96def30fab
commit e046171f47
1 changed files with 9 additions and 0 deletions

View File

@ -146,6 +146,15 @@ export const onUpdate = (row?: FormItemProps) => {
* @param row * @param row
*/ */
export const handleDelete = async row => { export const handleDelete = async row => {
// 是否确认删除
const result = await messageBox({
title: $t('confirmDelete'),
showMessage: false,
confirmMessage: undefined,
cancelMessage: $t('confirmDelete'),
});
if (!result) return;
await menuStore.deletedMenuByIds([row.id]); await menuStore.deletedMenuByIds([row.id]);
await onSearch(); await onSearch();
}; };