Merge branch 'main' into fix

This commit is contained in:
xingyu
2026-01-19 15:28:12 +08:00
committed by GitHub
6 changed files with 69 additions and 62 deletions

View File

@@ -44,7 +44,11 @@ const cropImage = async () => {
if (!cropperRef.value) return;
cropLoading.value = true;
try {
cropperImg.value = await cropperRef.value.getCropImage();
cropperImg.value = await cropperRef.value.getCropImage(
'image/jpeg',
0.92,
'base64',
);
} catch (error) {
console.error('图片裁剪失败:', error);
} finally {