feat: 禁止删除默认工具栏

This commit is contained in:
unanmed 2024-11-20 12:43:16 +08:00
parent 6e3effd2c5
commit d613ab5ae0

View File

@ -292,6 +292,10 @@ function exit() {
}
function deleteTool(id: string) {
if (id === '@defaults') {
tip('warn', '该工具栏不能删除!');
return;
}
Modal.confirm({
title: '确定要删除这个自定义工具栏吗?',
onOk() {