diff --git a/src/views/photos/index.vue b/src/views/photos/index.vue index 9796b61..0fe4d90 100644 --- a/src/views/photos/index.vue +++ b/src/views/photos/index.vue @@ -420,7 +420,7 @@ const disabled = ref(false) const handleChange: UploadProps['onChange'] = async (file: uploadFile, uploadFiles) => { state.formData.loading = true; - if (file.raw.type === 'image/png' || file.raw.type === 'image/jpeg' || file.raw.type === 'image/jpg') { + if (file.raw.type === 'image/png' || file.raw.type === 'image/jpeg' || file.raw.type === 'image/jpg' || file.raw.type === 'image/gif') { state.formData.fileList = uploadFiles; uploadDisabled.value = true; try {