更新
This commit is contained in:
@ -96,7 +96,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