mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-12 02:58:38 +08:00
chore: 优化部分命名
This commit is contained in:
@@ -127,8 +127,8 @@ const reset = () => {
|
||||
}
|
||||
|
||||
// 删除
|
||||
const onDelete = (item: DictItemResp) => {
|
||||
return handleDelete(() => deleteDictItem(item.id), { content: `是否确定删除 [${item.label}]?`, showModal: true })
|
||||
const onDelete = (record: DictItemResp) => {
|
||||
return handleDelete(() => deleteDictItem(record.id), { content: `是否确定删除 [${record.label}]?`, showModal: true })
|
||||
}
|
||||
|
||||
// 根据选中字典查询
|
||||
@@ -144,8 +144,8 @@ const onAdd = () => {
|
||||
}
|
||||
|
||||
// 修改
|
||||
const onUpdate = (item: DictItemResp) => {
|
||||
DictItemAddModalRef.value?.onUpdate(item.id)
|
||||
const onUpdate = (record: DictItemResp) => {
|
||||
DictItemAddModalRef.value?.onUpdate(record.id)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user