Browse Source

Merge branch 'ch/ht_3.0' of eta_mini/eta_mini_crm_front into master_ht

leichen 4 months ago
parent
commit
0dd81f2f3c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/author/List.vue

+ 2 - 2
src/views/author/List.vue

@@ -54,13 +54,13 @@ function handlePageChange(page){
 function handleUploadImg(file){
 function handleUploadImg(file){
     //图片大小和格式限制
     //图片大小和格式限制
     const {size,type} = file.file
     const {size,type} = file.file
-    const sizeLimit = 200*1024
+    const sizeLimit = 5*1024*1024
     if(!['image/png','image/jpeg'].includes(type)){
     if(!['image/png','image/jpeg'].includes(type)){
         ElMessage.warning('仅支持png、jpg格式的图片')
         ElMessage.warning('仅支持png、jpg格式的图片')
         return
         return
     }
     }
     if(size>sizeLimit){
     if(size>sizeLimit){
-        ElMessage.warning('研究员头像不能超过200kb')
+        ElMessage.warning('研究员头像不能超过5M')
         return
         return
     }
     }
     let form = new FormData();
     let form = new FormData();