上传失败给提示语

This commit is contained in:
18571350067 2022-03-11 16:34:52 +08:00
parent 0e8d18db0d
commit c6f8452f8d
1 changed files with 3 additions and 15 deletions

View File

@ -341,8 +341,9 @@ export default {
}) })
.catch(err => { .catch(err => {
console.log("进来了!!!!!",err); console.log("进来了!!!!!",err);
this.$message.error(err); // data.delete("file") //
this.uploadButtonText = '选择文件'; // this.uploadButtonText = '';
this.$message.error("上传失败!视频超出可上传大小范围");
}); });
return false; return false;
}, },
@ -575,19 +576,6 @@ export default {
} }
}, },
//
// initialize(key){
// if(key == 1) {
// this.fileUpload.videoForm.sizeStr = 0
// this.fileUpload.videoForm.learnHours == 0
// this.fileUpload.videoForm.learnScore= 0
// }
// if(key == 2){
// this.fileUpload.textForm.sizeStr = 0
// this.fileUpload.textForm.learnHours = 0
// this.fileUpload.textForm.learnScore= 0.0
// }
// },
}, },
}; };
</script> </script>