Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
YangFong committed Dec 6, 2024
1 parent c867c77 commit 2bb4e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CodemirrorEditor/UploadImgDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ function beforeImageUpload(file: File) {
// check image
const checkResult = checkImage(file)
if (!checkResult.ok) {
toast.error(checkResult.msg)
toast.error(checkResult.msg || ``)
return false
}
// check image host
Expand Down

0 comments on commit 2bb4e90

Please sign in to comment.