Commit e37bb346 authored by 沈翠玲's avatar 沈翠玲

作业端版本上传

parent d88e3ad8
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
handleBeforeUpload(file) { handleBeforeUpload(file) {
this.loading = true this.loading = true
// 校检文件后缀名 // 校检文件后缀名
if(file && file.name && file.name.substring(file.name.lastIndexOf('.') + 1) === 'apk') { if(file && file.name && (file.name.substring(file.name.lastIndexOf('.') + 1) === 'apk' || file.name.substring(file.name.lastIndexOf('.') + 1) === 'wgt')) {
return true; return true;
} else { } else {
this.$message.error(this.$t('请上传APK安装包')); this.$message.error(this.$t('请上传APK安装包'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment