Commit 49d0a144 by xuyl

Merge branch 'v3.0.0' of http://192.168.3.233:8090/glsx-web/glsx-oss-task into xuyl_dev_v2.12.0

2 parents 285f0095 dd075fff
......@@ -376,6 +376,7 @@ export default {
},
data() {
return {
uploadInfo: null,
textNum: 0,
maxNum: 1000,
myArr: [{ name: 888 }, { name: 888 }],
......@@ -395,21 +396,6 @@ export default {
}
},
mounted() {
const that = this
this.uploadInfo = new upload({
showprocess: true,
success: function (res) {
that.$notify({
title: '提示',
message: '视频上传成功',
type: 'success',
})
that.previewList.push({
materialType: that.ATT_TYPE.VEDIO,
materialContent: res,
})
},
})
console.log(this.linkStatus, 999)
if (this.previewList.length) {
console.log(this.previewList, 999)
......@@ -633,6 +619,24 @@ 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',
})
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!