fix: accept image in edit page

This commit is contained in:
jialin
2025-04-23 15:51:48 +08:00
parent 9bb7a125e3
commit a46286872d
6 changed files with 54 additions and 25 deletions
+4
View File
@@ -191,3 +191,7 @@ export const scaleImageSize = (size: { width: number; height: number }) => {
const newHeight = Math.floor(height / scale) * scale;
return { width: newWidth, height: newHeight };
};
// png, jpg, jpeg
const acceptImageType = ['image/png', 'image/jpg', 'image/jpeg'];
export const EDIT_IMAGE_ACCEPT = acceptImageType.join(',');