上传失败给提示语
This commit is contained in:
parent
0e8d18db0d
commit
c6f8452f8d
|
@ -341,8 +341,9 @@ export default {
|
|||
})
|
||||
.catch(err => {
|
||||
console.log("进来了!!!!!",err);
|
||||
this.$message.error(err);
|
||||
this.uploadButtonText = '选择文件';
|
||||
// data.delete("file") // 清空文件
|
||||
// this.uploadButtonText = '选择文件';
|
||||
this.$message.error("上传失败!视频超出可上传大小范围");
|
||||
});
|
||||
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>
|
||||
|
|
Loading…
Reference in New Issue