Browse Source

头像上传大小不得超过 30MB !

lifanagju_citu 6 tháng trước cách đây
mục cha
commit
77ae723c9b

+ 2 - 2
pagesA/resumeOnline/baseInfoEdit.vue

@@ -114,10 +114,10 @@ const uploadPhotos = () => {
     sourceType: ['album', 'camera'],
     sourceType: ['album', 'camera'],
     success: function(res){
     success: function(res){
       const size = res.tempFiles[0]?.size || 0
       const size = res.tempFiles[0]?.size || 0
-      if (size >= 10485760) {
+      if (size >= 31457280) {
         uni.showToast({
         uni.showToast({
           icon: 'none',
           icon: 'none',
-          title: '头像上传大小不得超过 10MB !',
+          title: '头像上传大小不得超过 30MB !',
           duration: 2000
           duration: 2000
         })
         })
         return
         return