试题导入非空判断

pg_adapter
dshclm 9 months ago
parent f424b2ff00
commit 5edc348bbb

@ -112,6 +112,13 @@
this.fileList = e.target.files this.fileList = e.target.files
}, },
save(){ save(){
if(this.fileList.length === 0){
this.$message({
message: '请先选择文件!',
type: 'warning'
})
return false
}
let that = this let that = this
this.importExcel(this.fileList[0]).then((res)=>{ this.importExcel(this.fileList[0]).then((res)=>{
console.log(res) console.log(res)

Loading…
Cancel
Save