im-ui-mobile 0.1.18 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -519,6 +519,11 @@ const startUpload = async (uploadFile: UploadFile) => {
|
|
|
519
519
|
throw new Error('请设置上传地址或自定义上传函数')
|
|
520
520
|
}
|
|
521
521
|
|
|
522
|
+
// 服务端失败
|
|
523
|
+
if (response.statusCode !== 200) {
|
|
524
|
+
throw new Error(response.data.error.message)
|
|
525
|
+
}
|
|
526
|
+
|
|
522
527
|
// 格式化响应数据
|
|
523
528
|
const formattedResponse = props.responseFormatter(response)
|
|
524
529
|
|