fix: image delete error

pull/6095/head
tangjinzhou 2 years ago
parent 7c35bcfece
commit 925a8f6ee5

@ -187,7 +187,9 @@ const ImageInternal = defineComponent({
{ flush: 'post', immediate: true },
);
});
onUnmounted(unRegister);
onUnmounted(() => {
unRegister();
});
const toSizePx = (l: number | string) => {
if (isNumber(l)) return l + 'px';
return l;

Loading…
Cancel
Save