liyg 2 lat temu
rodzic
commit
f33c0e84ba

+ 2 - 2
src/views/appoint/components/ship/addDeliveryNotice.vue

@@ -291,9 +291,9 @@ export default {
 
     beforeUpload(file) {
       this.upBool = true;
-      const isLt2M = file.size < 1024 * 1024 * 1;
+      const isLt2M = file.size < 1024 * 1024 * 3;
       if (!isLt2M) {
-        this.$message.error("上传文件大小不能超过1MB!");
+        this.$message.error("上传文件大小不能超过3MB!");
       } else {
         let size = file.size / 1024;
         let _URL = window.URL || window.webkitURL;

+ 2 - 2
src/views/appoint/components/ship/modifyDeliveryNotice.vue

@@ -265,9 +265,9 @@ export default {
     },
     beforeUpload(file) {
       this.upBool = true;
-      const isLt2M = file.size < 1024 * 1024 * 0.5;
+      const isLt2M = file.size < 1024 * 1024 * 3;
       if (!isLt2M) {
-        this.$message.error("上传文件大小不能超过500kb!");
+        this.$message.error("上传文件大小不能超过3M!");
       } else {
         let size = file.size / 1024;
         let _URL = window.URL || window.webkitURL;