1
0
tangning 5 месяцев назад
Родитель
Сommit
aac50a99ba
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      src/view/case/draw/selectFuseImage.vue

+ 6 - 2
src/view/case/draw/selectFuseImage.vue

@@ -57,6 +57,7 @@ import {
 } from "@/view/case/help";
 import { computed, nextTick, onMounted, ref, watchEffect } from "vue";
 import { QuiskExpose } from "@/helper/mount";
+import { imageCropper } from "@/view/system/quisk";
 
 export type FuseImage = { blob: Blob | null; taggings: CaseTagging[] };
 const props = defineProps<{ caseId: number }>();
@@ -97,13 +98,16 @@ const refreshBlob = async () => {
 
   if (fuseImage?.blob) {
     console.log('fuseImage', fuseImage?.blob);
-
+    const cropBlob = await imageCropper({
+      img: fuseImage?.blob,
+      fixed: [width, height]
+     })
     imageBlob.value =
       fuseImage.type !== FuseImageType.FUSE
         ? fuseImage.blob
         : await fuseImageJoinHot(
             iframeRef.value,
-            fuseImage.blob,
+            cropBlob,
             selectTaggings.value,
             width,
             height,