diff --git a/src/views/ImageEditorView.vue b/src/views/ImageEditorView.vue index 8440599..2e7ead9 100644 --- a/src/views/ImageEditorView.vue +++ b/src/views/ImageEditorView.vue @@ -108,7 +108,7 @@ const uploadImage = (event) => { img.src = URL.createObjectURL(imagesOrigin.value.item(i)); img.onload = () => { - images.value.push(img); + images.value[i] = img; resolve(); }; img.onerror = () => { @@ -458,8 +458,8 @@ onUnmounted(() => {
@@ -485,7 +485,7 @@ onUnmounted(() => {Origin resolution: - {{ images[imageSelected].width }} * {{ images[imageSelected].height }} + {{ images[imageSelected]?.width }} * {{ images[imageSelected]?.height }}