ZaiZai hace 1 año
padre
commit
b5c0f96564
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      src/views/data-fill/components/HcUpload.vue

+ 4 - 4
src/views/data-fill/components/HcUpload.vue

@@ -22,7 +22,7 @@
             </div>
         </template>
     </el-upload>
-    <div class="mt-3 " style="float: right;">
+    <div class="mt-3" style="float: right;">
         <el-button v-if="!autoUpload" type="primary" @click="submitUpload">
             确认上传
         </el-button>
@@ -56,11 +56,11 @@ const props = defineProps({
     },
     accept:{
         type:String,
-        default:'image/png,image/jpg,image/jpeg,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel,application/pdf,.doc,.docx,application/msword',
+        default:'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel,application/pdf,.doc,.docx,application/msword',
     },
     acceptTip:{
         type:String,
-        default:'允许格式:jpg/png/pdf/excel/word, 文件大小 小于 60MB',
+        default:'允许格式:pdf/excel/word, 文件大小 小于 60MB',
     },
     autoUpload:{
         type:Boolean,
@@ -252,7 +252,7 @@ const submitUpload = ()=>{
     if (!typevalue.value && !autoUpload.value) {
         window.$message.warning('请先选择附件类型')
         return
-    } 
+    }
     uploadRef.value.submit()
 }
 </script>