From 498ef3a9939f5ada38a95b518bf8e870b0490ab3 Mon Sep 17 00:00:00 2001 From: huangyuxuan Date: Tue, 3 Dec 2024 11:45:31 +0800 Subject: [PATCH] =?UTF-8?q?(hyx=5FSpecialUserBug)=20=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E7=89=B9=E7=A7=8D=E4=BD=9C=E4=B8=9A=E4=BA=BA=E5=91=98=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=97=B6=E6=97=A0=E6=B3=95=E4=B8=8A=E4=BC=A0=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/certificate_information/add.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/certificate_information/add.vue b/pages/certificate_information/add.vue index 0ae6497..91024c5 100644 --- a/pages/certificate_information/add.vue +++ b/pages/certificate_information/add.vue @@ -335,7 +335,8 @@ export default { this.form.REVIEW_TIME = uni.$u.timeFormat(event.value, 'yyyy-mm-dd') }, fnAfterRead(event) { - var houzhui = event.file.url.replace(/.+\./, ""); + console.log(event.file) + var houzhui = event.file.name.substring(event.file.name.lastIndexOf('.') + 1); console.log(houzhui); if (houzhui == "jpg" || houzhui == "png") { this.form.fileList.push(event.file) @@ -346,7 +347,8 @@ export default { } }, fnAfterRead1(event) { - var houzhui = event.file.url.replace(/.+\./, ""); + console.log(event.file) + var houzhui = event.file.name.substring(event.file.name.lastIndexOf('.') + 1); console.log(houzhui); if (houzhui == "jpg" || houzhui == "png") { this.form.fileListBack.push(event.file)