fix:文件上次会多显示一条数据
This commit is contained in:
parent
e0ab8ea8fe
commit
5896bf05cd
@ -212,9 +212,12 @@ function getFileName(name) {
|
|||||||
function listToString(list, separator) {
|
function listToString(list, separator) {
|
||||||
let strs = ''
|
let strs = ''
|
||||||
separator = separator || ','
|
separator = separator || ','
|
||||||
for (let i in list) {
|
|
||||||
strs += list[i].url + separator
|
list.forEach((element) => {
|
||||||
}
|
if (element) {
|
||||||
|
strs += element.url + separator
|
||||||
|
}
|
||||||
|
})
|
||||||
return strs != '' ? strs.substr(0, strs.length - 1) : ''
|
return strs != '' ? strs.substr(0, strs.length - 1) : ''
|
||||||
}
|
}
|
||||||
// 手动提交上传
|
// 手动提交上传
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user