默认工具在菜单中不显示操作选项
This commit is contained in:
parent
d544701e13
commit
374e699949
@ -375,12 +375,7 @@ function getToolMenuOptions(tool: Tool): DropdownOption[] {
|
||||
const options: DropdownOption[] = []
|
||||
|
||||
if (tool.isDefault) {
|
||||
// 默认工具:只显示"删除"选项
|
||||
options.push({
|
||||
label: t('Delete'),
|
||||
key: 'delete',
|
||||
icon: () => h('i', { class: 'fa fa-trash' })
|
||||
})
|
||||
return []
|
||||
} else {
|
||||
// 用户工具:显示"编辑"和"删除"选项
|
||||
options.push(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user