From 4de5f40a1a7df4a252b0f44869e7599a066c06b2 Mon Sep 17 00:00:00 2001 From: odc.xiaohui <xiaohui@Q1> Date: 星期三, 15 十一月 2023 09:16:23 +0800 Subject: [PATCH] 修改视频专网 --- src/components/FileUpload/index.vue | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 681185a..9d3474b 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -11,6 +11,7 @@ class="upload-file-uploader" ref="fileUploadRef" :auto-upload="false" + :on-exceed="handleExceed" > <!-- 涓婁紶鎸夐挳 --> <el-button type="primary">閫夊彇鏂囦欢</el-button> @@ -47,9 +48,9 @@ const props = defineProps({ modelValue: [String, Object, Array], // 鏁伴噺闄愬埗 - limit: propTypes.number.def(10), + limit: propTypes.number.def(1), // 澶у皬闄愬埗(MB) - fileSize: propTypes.number.def(5), + fileSize: propTypes.number.def(200), // 鏂囦欢绫诲瀷, 渚嬪['png', 'jpg', 'jpeg'] fileType: propTypes.array.def(["doc","docx","xlsx", "xls", "ppt", "txt", "pdf"]), // 鏄惁鏄剧ず鎻愮ず @@ -174,8 +175,9 @@ // 涓婁紶鎴愬姛鍥炶皟 const handleUploadSuccess = (res: any, file: UploadFile) => { if (res.code === 200) { - emit('closePopup') - console.log('璋冪敤鐖剁粍浠�'); + emit('closePopup',res.data) + + console.log('璋冪敤鐖剁粍浠�',res); fileUploadRef.value!.clearFiles() downloadLoadingInstance.close(); uploadList.value.push({ name: res.data.fileName, url: res.data.url, ossId: res.data.ossId }); -- Gitblit v1.8.0