From 5edc348bbb04bbc2b7094e0d77b174df76ddc921 Mon Sep 17 00:00:00 2001 From: dshclm <3321914460@qq.com> Date: Thu, 11 Jul 2024 11:05:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E9=A2=98=E5=AF=BC=E5=85=A5=E9=9D=9E?= =?UTF-8?q?=E7=A9=BA=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/system/elExam/qu/toImport.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ruoyi-admin/src/main/resources/templates/system/elExam/qu/toImport.html b/ruoyi-admin/src/main/resources/templates/system/elExam/qu/toImport.html index 31ff4ed..c53a567 100644 --- a/ruoyi-admin/src/main/resources/templates/system/elExam/qu/toImport.html +++ b/ruoyi-admin/src/main/resources/templates/system/elExam/qu/toImport.html @@ -112,6 +112,13 @@ this.fileList = e.target.files }, save(){ + if(this.fileList.length === 0){ + this.$message({ + message: '请先选择文件!', + type: 'warning' + }) + return false + } let that = this this.importExcel(this.fileList[0]).then((res)=>{ console.log(res)