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