【更新】关闭时销毁 Modal 里的子元素

【更新】关闭时销毁 Modal 里的子元素

Signed-off-by: bubu <8096927+bubu-space@user.noreply.gitee.com>
This commit is contained in:
bubu
2025-04-20 08:20:22 +00:00
committed by Gitee
parent 6414fd7a91
commit 6539b501ee

View File

@@ -61,7 +61,7 @@
</a-upload>
<!-- 文件预览 -->
<a-modal :open="previewVisible" :title="previewTitle" :footer="null" @cancel="handleCancel">
<a-modal :open="previewVisible" :title="previewTitle" :footer="null" :destroyOnClose="true" @cancel="handleCancel">
<template v-if="props.uploadMode === 'image'">
<img alt="example" style="width: 100%" :src="previewObj" />
</template>