From bb01ff0a2fb065d4db7f31dac1b709b84b33de7f Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 3 Dec 2024 16:26:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=AD=97=E4=BD=93=E6=96=87=E4=BB=B6=E5=90=8E?= =?UTF-8?q?=E7=BC=80=E4=BC=9A=E5=8C=BA=E5=88=86=E5=A4=A7=E5=B0=8F=E5=86=99?= =?UTF-8?q?=EF=BC=8C=E5=BB=BA=E8=AE=AE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/system/font/UploadDetail.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/system/font/UploadDetail.vue b/core/core-frontend/src/views/system/font/UploadDetail.vue index e1d558b681..d9b8c9985f 100644 --- a/core/core-frontend/src/views/system/font/UploadDetail.vue +++ b/core/core-frontend/src/views/system/font/UploadDetail.vue @@ -79,14 +79,14 @@ defineExpose({ }) const beforeAvatarUpload = rawFile => { - if (!rawFile.name.endsWith('.ttf')) { + if (!rawFile.name.toLocaleLowerCase().endsWith('.ttf')) { ElMessage.error(t('system.in_ttf_format')) return false } return true } const onChange = file => { - if (file.raw?.name.endsWith('.ttf')) { + if (file.raw?.name?.toLocaleLowerCase().endsWith('.ttf')) { state.fileList = file } }