提交 8ac6a9c4 编写于 作者: changdi.hao's avatar changdi.hao

优化图片上传和mp3上传

上级 550c3673
流水线 #35659 已取消 于阶段
......@@ -107,15 +107,13 @@ export default {
let newArr = []
if (this.imgArr && this.imgArr.length) {
this.imgArr.forEach(item => {
if (item.url) {
newArr.push(item.url)
} else {
if (item.response){
newArr.push(item.response.data)
} else if(item.url && item.from) {
newArr.push(item.url)
}
});
}
return newArr
}
},
......
......@@ -121,12 +121,11 @@ export default {
let newArr = []
if (this.musicArr && this.musicArr.length) {
this.musicArr.forEach(item => {
if (item.url) {
newArr.push(item.url)
} else if (item.response){
if (item.response){
newArr.push(item.response.data.domainPath + item.response.data.path)
} else if(item.url && item.from) {
newArr.push(item.url)
}
});
}
return newArr
......
......@@ -526,7 +526,7 @@ export default {
let newArr = []
array.forEach(element => {
newArr.push(
{
{ from: 'all',
url: element
}
)
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册