fix: image delete error

This commit is contained in:
tangjinzhou 2022-11-10 11:40:11 +08:00
parent 7c35bcfece
commit 925a8f6ee5

View File

@ -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;