diff --git a/utils/index.js b/utils/index.js index 86debbe..093911b 100644 --- a/utils/index.js +++ b/utils/index.js @@ -1214,18 +1214,18 @@ export function uploadVideo(videoPath, callback) { name: "file", success: res => { if (callback) { + uni.hideLoading() callback(JSON.parse(res.data).link) } }, fail: err => { uni.showToast({ - title: "上传视频失败" + err, + title: "视频大小不能超过500MB", icon: "none", duration: 2000 }); }, complete: res => { - uni.hideLoading() } }); }