perf: improve `destroyOnClose` for VbenModal (#5964)

pull/78/MERGE
ming4762 2025-04-16 11:28:36 +08:00 committed by GitHub
parent 8f3881eabf
commit 3318d76bab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ const getAppendTo = computed(() => {
});
const getForceMount = computed(() => {
return !unref(destroyOnClose);
return !unref(destroyOnClose) && unref(firstOpened);
});
function handleClosed() {