fix:文件上次会多显示一条数据

This commit is contained in:
不做码农 2023-04-16 18:42:31 +08:00
parent e0ab8ea8fe
commit 5896bf05cd

View File

@ -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) : ''
} }
// //