上传组件兼容element-plus最新版本

This commit is contained in:
RuoYi
2022-04-09 13:57:17 +08:00
parent 299e69968e
commit 59c114b6c0
2 changed files with 7 additions and 23 deletions

View File

@ -170,7 +170,9 @@ function listToString(list, separator) {
let strs = "";
separator = separator || ",";
for (let i in list) {
strs += list[i].url + separator;
if(undefined !== list[i].url) {
strs += list[i].url + separator;
}
}
return strs != '' ? strs.substr(0, strs.length - 1) : '';
}