diff --git a/src/components/VideoUpload/index.vue b/src/components/VideoUpload/index.vue index d695fe3..c2bb225 100644 --- a/src/components/VideoUpload/index.vue +++ b/src/components/VideoUpload/index.vue @@ -117,6 +117,10 @@ export default { this.isShowUploadVideo = true; this.videoFlag = false; this.videoUploadPercent = 0; + if (res.code == 500) { + this.$modal.msgError(res.msg); + return; + } this.videoForm.showVideoPath = this.baseUrl + res.fileName; this.$emit("getDuration", file.response.duration); //时长 this.$emit("input", res.fileName);