Compare commits
2 Commits
ee8be96785
...
c83d17beac
| Author | SHA1 | Date | |
|---|---|---|---|
| c83d17beac | |||
| 4c1a3ad423 |
@ -97,7 +97,6 @@ const fileList = ref([]);
|
|||||||
watch(() => props.modelValue,(val) => {
|
watch(() => props.modelValue,(val) => {
|
||||||
let arr = val ? (Array.isArray(val) ? val :[val]): [];
|
let arr = val ? (Array.isArray(val) ? val :[val]): [];
|
||||||
console.log(val,'=========999');
|
console.log(val,'=========999');
|
||||||
|
|
||||||
if(arr.length == 0 ) return fileList.value = [];
|
if(arr.length == 0 ) return fileList.value = [];
|
||||||
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]") {
|
||||||
|
|||||||
Reference in New Issue
Block a user