This commit is contained in:
2025-09-25 14:37:39 +08:00
parent 369c41cea6
commit 1a8f40df98

View File

@ -148,7 +148,7 @@ watch(() => props.modelValue,(val) => {
if (arr.length > 0) { if (arr.length > 0) {
fileList.value = arr.map((el) => { fileList.value = arr.map((el) => {
if (Object.prototype.toString.call(el) === "[object Object]") { if (Object.prototype.toString.call(el) === "[object Object]") {
return { url: `/mosty-base/minio/image/download/` + el, name: el.name}; return props.isAll ? { url: `/mosty-base/minio/image/download/` + el.id, name: el.name } : { url:el,name:el.name};
} else { } else {
return { url: `/mosty-base/minio/image/download/` + el }; return { url: `/mosty-base/minio/image/download/` + el };
} }