Explorar el Código

feat:软件包上传大小限制从20m改成70m

Zhenghanjv hace 1 mes
padre
commit
7278281780
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      admin.ui.plus-master/src/components/my-upload-file/index.vue

+ 2 - 2
admin.ui.plus-master/src/components/my-upload-file/index.vue

@@ -87,8 +87,8 @@ const handleAvatarSuccess: UploadProps['onSuccess'] = (
 }
 
 const beforeAvatarUpload: UploadProps['beforeUpload'] = (rawFile) => {
-  if (rawFile.size / 1024 / 1024 > 20) {
-    ElMessage.error('文件超过20MB!')
+  if (rawFile.size / 1024 / 1024 > 70) {
+    ElMessage.error('文件超过70MB!')
     return false
   }
   return true