6f7236d3 by zhen

feat:限制文件大小为200M

1 parent 161ec22d
...@@ -256,6 +256,11 @@ export default { ...@@ -256,6 +256,11 @@ export default {
256 this.$message.error('支持文件为pdf格式') 256 this.$message.error('支持文件为pdf格式')
257 return 257 return
258 } 258 }
259 // 大小限制为200M
260 if (file.size > 200 * 1024 * 1024) {
261 this.$message.error('文件大小限制为200M')
262 return
263 }
259 if (this.fileList[this.currentFileIndex].name) { 264 if (this.fileList[this.currentFileIndex].name) {
260 await this.uploadConfirm() 265 await this.uploadConfirm()
261 } 266 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!