소스 검색

1. 优化

MONSTER-ygh 1 년 전
부모
커밋
e4bca3f5eb
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/tourism/scenicAreaManagement/contentManagement/formBox/attractionInfoManagementForm.vue

+ 2 - 2
src/views/tourism/scenicAreaManagement/contentManagement/formBox/attractionInfoManagementForm.vue

@@ -58,7 +58,7 @@
             </div>
             
           </div>
-          <span>支持jpg、png、gif,支持1MB大小以内的图片上传</span>
+          <span>支持jpg、png,支持1MB大小以内的图片上传</span>
         </el-form-item>
         <el-form-item label="开放时间:" prop="openDate">
           <el-time-picker
@@ -348,7 +348,7 @@ export default {
     beforeAvatarUpload(file) {
       const isLt2M = file.size / 1024 / 1024 < 1;
       let testmsg = file.name.substring(file.name.lastIndexOf('.')+1)
-      let typeList = ['png','jepg','jpg','gif']
+      let typeList = ['png','jepg','jpg']
       const isJPG = typeList.includes(testmsg);
       if (!isJPG) {
         this.$message.error(`上传头像图片只能是 ${typeList} 格式!`);