Commit b4cf00fa authored by guoyou's avatar guoyou

峰会回顾压缩包修复

parent e5d2bc4f
...@@ -170,7 +170,6 @@ export default { ...@@ -170,7 +170,6 @@ export default {
beforeAvatarUpload(file) { beforeAvatarUpload(file) {
var index = file.name.lastIndexOf('.') var index = file.name.lastIndexOf('.')
var ext = file.name.substr(index + 1) var ext = file.name.substr(index + 1)
console.log(ext)
if (ext != 'zip') { if (ext != 'zip') {
this.$message.error('上传压缩包只能是 zip 格式!') this.$message.error('上传压缩包只能是 zip 格式!')
return false return false
...@@ -197,7 +196,7 @@ export default { ...@@ -197,7 +196,7 @@ export default {
cre() { cre() {
let zipPic = [] let zipPic = []
this.list.forEach(element => { this.list.forEach(element => {
zipPic.push(element.url) zipPic.push(element.response.data)
}) })
let mp4Vadio = [] let mp4Vadio = []
this.vadio.forEach(element => { this.vadio.forEach(element => {
...@@ -219,6 +218,8 @@ export default { ...@@ -219,6 +218,8 @@ export default {
: zipPic.join(',') + ',' + this.oldList : zipPic.join(',') + ',' + this.oldList
: zipPic.join(',') : zipPic.join(',')
} }
// console.log(params);
save(params).then(res => { save(params).then(res => {
this.responseResult(res) this.responseResult(res)
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment