Commit 03852c06 by 李伟康

Merge branch 'v3.3.0' of http://192.168.3.233:8090/saas/scrm-micro-battles into v3.3.0

2 parents a508aeeb 64700bc0
......@@ -197,10 +197,6 @@ export default {
},
// 上传视频
handleVideoChange(e) {
this.$notify({
title: '提示',
message: '视频上传中,请稍后'
})
this.loading = true
let file = e.srcElement.files[0]
var reader = new FileReader()
......@@ -209,8 +205,13 @@ export default {
const isLt = file.size / 1024 / 1024 < limitSize
if (!isLt) {
this.$message.error('上传视频大小不能超过' + limitSize + 'MB!')
this.loading = false
return
}
this.$notify({
title: '提示',
message: '视频上传中,请稍后'
})
document.querySelector('.upload-video').value = ''
reader.readAsDataURL(file)
reader.onload = e => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!