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)