Commit b49ec841 by 前端

视频上传问题修复

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