fix: type error

This commit is contained in:
YangFong 2024-12-06 09:41:29 +08:00
parent c867c77289
commit 2bb4e90f27

View File

@ -257,7 +257,7 @@ function beforeImageUpload(file: File) {
// check image // check image
const checkResult = checkImage(file) const checkResult = checkImage(file)
if (!checkResult.ok) { if (!checkResult.ok) {
toast.error(checkResult.msg) toast.error(checkResult.msg || ``)
return false return false
} }
// check image host // check image host