Skip to content

Commit 925a8f6

Browse files
committed
fix: image delete error
1 parent 7c35bcf commit 925a8f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/vc-image/src/Image.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ const ImageInternal = defineComponent({
187187
{ flush: 'post', immediate: true },
188188
);
189189
});
190-
onUnmounted(unRegister);
190+
onUnmounted(() => {
191+
unRegister();
192+
});
191193
const toSizePx = (l: number | string) => {
192194
if (isNumber(l)) return l + 'px';
193195
return l;

0 commit comments

Comments
 (0)