From 085ce4cf43e29965e56b3a4e492abe55d0d6948f Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期二, 26 十二月 2023 00:47:59 +0800 Subject: [PATCH] update 优化 更改客户端状态接口 使用clientId传参 --- src/components/FileUpload/index.vue | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 67abaab..1cbf395 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -48,7 +48,10 @@ import { globalHeaders } from '@/utils/request'; const props = defineProps({ - modelValue: [String, Object, Array], + modelValue: { + type: [String, Object, Array], + default: () => [] + }, // 鏁伴噺闄愬埗 limit: propTypes.number.def(5), // 澶у皬闄愬埗(MB) @@ -79,11 +82,11 @@ if (val) { let temp = 1; // 棣栧厛灏嗗�艰浆涓烘暟缁� - let list = []; + let list: any[] = []; if (Array.isArray(val)) { list = val; } else { - const res = await listByIds(val as string); + const res = await listByIds(val); list = res.data.map((oss) => { const data = { name: oss.originalName, -- Gitblit v1.9.3