fix: 轮播图CarousalDialog组件将delete对象改为赋值null形式

This commit was merged in pull request #8.
This commit is contained in:
zlong committed 2024-12-08 17:35:08 +08:00
1 parent cda60022be
commit c59a2587dd
2 files changed
+5 -9

No files matched your search

@@ -92,9 +92,9 @@ const typeOption = reactive([
])
const handleFormTypeData = () => {
if (carousalData.value.targetType === 'article') {
delete carousalData.value.targetUrl
carousalData.value.targetUrl = null
} else if (carousalData.value.targetType === 'url') {
delete carousalData.value.targetId
carousalData.value.targetId = null
}
}