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

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

Signed-off-by: bubu <8096927+bubu-space@user.noreply.gitee.com>
pull/255/head
bubu 2025-04-20 08:20:22 +00:00 committed by Gitee
parent 6414fd7a91
commit 6539b501ee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

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>