Commit dfd5cc55 by jiang'yun

修改

parent fa53ed97
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div> <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
<div class="el-upload__tip" slot="tip"> <div class="el-upload__tip" slot="tip">
支持 doc、docx、pdf、xls、xlsx、ppt、pptx、txt、jpg、jpeg、png、gif 格式文件,单个文件不超过50MB<br/> 支持 doc、docx、pdf、xls、xlsx、ppt、pptx、txt、jpg、jpeg、png、gif 格式文件<br/>
<span style="color: #409EFF;">上传新文件将自动替换已有文件</span> <span style="color: #409EFF;">上传新文件将自动替换已有文件</span>
</div> </div>
</el-upload> </el-upload>
...@@ -617,11 +617,11 @@ export default { ...@@ -617,11 +617,11 @@ export default {
} }
// 校验文件大小 // 校验文件大小
const isLt50M = file.size / 1024 / 1024 < 50 // const isLt50M = file.size / 1024 / 1024 < 50
if (!isLt50M) { // if (!isLt50M) {
this.$modal.msgError('上传文件大小不能超过 50MB!') // this.$modal.msgError('上传文件大小不能超过 50MB!')
return false // return false
} // }
return true return true
}, },
......
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