mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2026-01-18 03:00:14 +08:00
chore: 优化部分命名
This commit is contained in:
@@ -140,9 +140,9 @@ const reset = () => {
|
||||
}
|
||||
|
||||
// 删除
|
||||
const onDelete = (item: MenuResp) => {
|
||||
return handleDelete(() => deleteMenu(item.id), {
|
||||
content: `是否确定删除 [${item.title}]?`,
|
||||
const onDelete = (record: MenuResp) => {
|
||||
return handleDelete(() => deleteMenu(record.id), {
|
||||
content: `是否确定删除 [${record.title}]?`,
|
||||
showModal: true
|
||||
})
|
||||
}
|
||||
@@ -162,8 +162,8 @@ const onAdd = (parentId?: string) => {
|
||||
}
|
||||
|
||||
// 修改
|
||||
const onUpdate = (item: MenuResp) => {
|
||||
MenuAddModalRef.value?.onUpdate(item.id)
|
||||
const onUpdate = (record: MenuResp) => {
|
||||
MenuAddModalRef.value?.onUpdate(record.id)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user