Commit b49ec841 by 前端

视频上传问题修复

1 parent 1c415ac5
......@@ -621,23 +621,21 @@ export default {
async handleVideoChange(e) {
await this.uploadFileVideo(e)
const that = this
if (!this.uploadInfo) {
this.uploadInfo = new upload({
showprocess: true,
success: function (res) {
that.$notify({
title: '提示',
message: '视频上传成功',
type: 'success',
})
document.querySelector('.upload-video').value = ''
that.previewList.push({
materialType: that.ATT_TYPE.VEDIO,
materialContent: res,
})
},
})
}
this.uploadInfo = new upload({
showprocess: true,
success: function (res) {
that.$notify({
title: '提示',
message: '视频上传成功',
type: 'success',
})
document.querySelector('.upload-video').value = ''
that.previewList.push({
materialType: that.ATT_TYPE.VEDIO,
materialContent: res,
})
},
})
this.$notify({
title: '提示',
message: '视频上传中,请稍后',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!