perf: improve destroyOnClose for VbenModal (#5964)

This commit is contained in:
ming4762
2025-04-16 11:28:36 +08:00
committed by GitHub
parent 8f3881eabf
commit 3318d76bab

View File

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