From 10fa5afc6bba71196ac46645d18e253bbabd151c Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Fri, 17 Jan 2025 16:13:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E5=AD=90=E6=A1=A3=E6=A1=88=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=8A=E4=BC=A0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/material/archives/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/material/archives/index.vue b/src/views/material/archives/index.vue index 8a46c498..ae5aa4d4 100644 --- a/src/views/material/archives/index.vue +++ b/src/views/material/archives/index.vue @@ -723,11 +723,11 @@ export default { handleSuccess(response, file, fileList) { console.log('File uploaded successfully:', response); console.log('File uploaded successfully:', file); - if(response.code==200){ + if(response.code==200){ let param = { docName:response.data.name, docUrl:response.data.url, - docType:response.data.name.split(".")[1], + docType:response.data.name.split(".").pop(), docSize:(file.size / 1024 / 1024).toFixed(2), detailsId:this.queryParams.detailsId, infoId:this.queryParams.infoId,