From bbf6fb0631cc8bc79653f84be7206dd6bf688c0f Mon Sep 17 00:00:00 2001 From: JIAL <2287346125@qq.com> Date: Mon, 8 Jul 2024 09:28:49 +0800 Subject: [PATCH] 1 --- ruoyi-ui/src/views/mobile/quoteMobile/operation/add.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ruoyi-ui/src/views/mobile/quoteMobile/operation/add.vue b/ruoyi-ui/src/views/mobile/quoteMobile/operation/add.vue index 7233558..0eeb4c6 100644 --- a/ruoyi-ui/src/views/mobile/quoteMobile/operation/add.vue +++ b/ruoyi-ui/src/views/mobile/quoteMobile/operation/add.vue @@ -584,7 +584,8 @@ export default { this.quotXjFileLoading = true; let activeName = this.activeName; if(activeName=='quotXjFile'){ - if(file.name.split('.')[1].toLowerCase() != 'xls' && file.name.split('.')[1].toLowerCase() != 'xlsx'){ + const fileExtension = file.name.split('.').pop(); + if(fileExtension.toLowerCase() != 'xls' && fileExtension.toLowerCase() != 'xlsx'){ this.$modal.msgError("清单附件必须是Excel格式"); this.quotXjFileLoading = false; return false;