Compare commits
2 Commits
9f2a04aa5d
...
29c26fd6d0
| Author | SHA1 | Date | |
|---|---|---|---|
| 29c26fd6d0 | |||
| 1a8f40df98 |
@ -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 };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user