From ae637cd9a8dc3dfee9fd29a9da4787d79ac243ef Mon Sep 17 00:00:00 2001 From: linyousheng <810275303@qq.com> Date: Wed, 21 Dec 2022 20:12:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=8F=8A=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E5=90=8E=EF=BC=8C=E6=8E=A5=E5=8F=A3/system/o?= =?UTF-8?q?ss/listByIds/=20=E6=8A=A5=E7=9A=84=E7=B1=BB=E5=9E=8B=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/components/FileUpload/index.vue | 2 +- ruoyi-ui/src/components/ImageUpload/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/components/FileUpload/index.vue b/ruoyi-ui/src/components/FileUpload/index.vue index 2e33c1b77..1a7760f98 100644 --- a/ruoyi-ui/src/components/FileUpload/index.vue +++ b/ruoyi-ui/src/components/FileUpload/index.vue @@ -91,7 +91,7 @@ export default { if (Array.isArray(val)) { list = val; } else { - await listByIds(val).then(res => { + await listByIds([val.ossId]).then(res => { list = res.data.map(oss => { oss = { name: oss.originalName, url: oss.url, ossId: oss.ossId }; return oss; diff --git a/ruoyi-ui/src/components/ImageUpload/index.vue b/ruoyi-ui/src/components/ImageUpload/index.vue index 9c92e86bc..e737cd42a 100644 --- a/ruoyi-ui/src/components/ImageUpload/index.vue +++ b/ruoyi-ui/src/components/ImageUpload/index.vue @@ -94,7 +94,7 @@ export default { if (Array.isArray(val)) { list = val; } else { - await listByIds(val).then(res => { + await listByIds([val.ossId]).then(res => { list = res.data; }) }