We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e24962c commit c6b8370Copy full SHA for c6b8370
ruoyi-fastapi-frontend/src/views/system/user/index.vue
@@ -690,6 +690,11 @@ export default {
690
},
691
// 提交上传文件
692
submitFileForm() {
693
+ const file = this.$refs.upload.uploadFiles
694
+ if (!file || file.length === 0 || !file[0].name.toLowerCase().endsWith('.xls') && !file[0].name.toLowerCase().endsWith('.xlsx')) {
695
+ this.$modal.msgError("请选择后缀为 “xls”或“xlsx”的文件。")
696
+ return
697
+ }
698
this.$refs.upload.submit();
699
}
700
0 commit comments