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

@@ -65,7 +65,7 @@ const [Modal, modalApi] = useVbenModal({
key: 'action_process_msg',
});
} finally {
modalApi.lock(false);
modalApi.unlock();
}
},
async onOpenChange(isOpen: boolean) {
@@ -86,7 +86,7 @@ const [Modal, modalApi] = useVbenModal({
try {
data = await getDemo02Category(data.id);
} finally {
modalApi.lock(false);
modalApi.unlock();
}
}
// 设置到 values