mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-31 15:09:26 +08:00
feat: 禁止删除默认工具栏
This commit is contained in:
parent
6e3effd2c5
commit
d613ab5ae0
@ -292,6 +292,10 @@ function exit() {
|
||||
}
|
||||
|
||||
function deleteTool(id: string) {
|
||||
if (id === '@defaults') {
|
||||
tip('warn', '该工具栏不能删除!');
|
||||
return;
|
||||
}
|
||||
Modal.confirm({
|
||||
title: '确定要删除这个自定义工具栏吗?',
|
||||
onOk() {
|
||||
|
Loading…
Reference in New Issue
Block a user