perf: 使用 modalApi.unlock() 替换 modalApi.lock(false)

This commit is contained in:
xingyu4j
2025-04-29 22:29:03 +08:00
parent 84584a6fd9
commit 0dacc08c2b
52 changed files with 90 additions and 91 deletions

View File

@@ -59,7 +59,7 @@ const [Modal, modalApi] = useVbenModal({
key: 'action_process_msg',
});
} finally {
modalApi.lock(false);
modalApi.unlock();
}
},
async onOpenChange(isOpen: boolean) {
@@ -80,7 +80,7 @@ const [Modal, modalApi] = useVbenModal({
// 加载菜单列表
await loadMenuTree();
} finally {
modalApi.lock(false);
modalApi.unlock();
}
},
});