Perf: Optimization of cropping component result acquisition & optimization of cropping frame prompts (#7111)

* perf(cropper): enhance image cropping functionality and add output type support

* perf(cropper): enhance image cropping functionality and add output type support
This commit is contained in:
JyQAQ
2026-01-19 14:18:36 +08:00
committed by GitHub
parent 686c3f9208
commit 59aabd956d
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 {