Răsfoiți Sursa

上传文件限制改成500m

wd 2 ani în urmă
părinte
comite
314a5a0402

+ 2 - 2
src/dashoo.cn/frontend_web/src/pages/documentmanage/add.vue

@@ -400,11 +400,11 @@
         })
       },
       beforeAvatarUpload (file) {
-        let isLt50m = file.size / 1024 / 1024 / 50 < 1
+        let isLt50m = file.size / 1024 / 1024 / 500 < 1
         if (!isLt50m) {
           this.$message.error({
                 duration: 10000,
-                message: '上传文件大小不能超过 50MB!'
+                message: '上传文件大小不能超过 500MB!'
               })
           return false
         }