Compare commits
2 Commits
a7cbc782fa
...
bfbe6136bc
| Author | SHA1 | Date | |
|---|---|---|---|
| bfbe6136bc | |||
| 3b3a8122bc |
@ -95,6 +95,8 @@ const fileList = ref([]);
|
||||
|
||||
watch(() => props.modelValue,(val) => {
|
||||
let arr = val ? (Array.isArray(val) ? val :[val]): [];
|
||||
console.log(val,'=========999');
|
||||
|
||||
if(arr.length == 0 ) return fileList.value = [];
|
||||
fileList.value = arr.map((el) => {
|
||||
if (Object.prototype.toString.call(el) === "[object Object]") {
|
||||
@ -159,6 +161,8 @@ const handlerSuccess = (res, file) => {
|
||||
// file.url = `/mosty-base/minio/image/download/` + res.data;
|
||||
file.id = res.data;
|
||||
fileList.value.push(file);
|
||||
console.log(fileList.value,'=========999');
|
||||
|
||||
let arr = []
|
||||
if(props.isImg){
|
||||
arr = fileList.value.map((el) => el.id)
|
||||
|
||||
Reference in New Issue
Block a user