Skip to content

Commit

Permalink
fix(ui): undefined var
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilfish committed Mar 10, 2024
1 parent 72afcaf commit 2dbe21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/MainImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const imgHost = useStorage('imgHost', '/')
watch(imgHost, () => {
realSrc.value = replaceImg(props.src)
if (!imageRef.value)
if (!imgRef.value)
return
imgRef.value.imageRef.src = realSrc.value
imgRef.value.imageRef.parentElement.classList.remove('img-error')
Expand Down

0 comments on commit 2dbe21b

Please sign in to comment.