Compare commits

..

2 Commits

Author SHA1 Message Date
bfbe6136bc Merge branch 'master' of http://61.139.16.27:26684/maojiacai/ba_web 2025-09-26 17:29:14 +08:00
3b3a8122bc 更新 2025-09-26 17:29:00 +08:00

View File

@ -95,6 +95,8 @@ 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');
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]") {
@ -159,6 +161,8 @@ const handlerSuccess = (res, file) => {
// file.url = `/mosty-base/minio/image/download/` + res.data; // file.url = `/mosty-base/minio/image/download/` + res.data;
file.id = res.data; file.id = res.data;
fileList.value.push(file); fileList.value.push(file);
console.log(fileList.value,'=========999');
let arr = [] let arr = []
if(props.isImg){ if(props.isImg){
arr = fileList.value.map((el) => el.id) arr = fileList.value.map((el) => el.id)