From 5bf947eb0b26680367db2c26acf0735532f6a083 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 11 Jun 2022 18:47:58 +0900 Subject: [PATCH] Update cropper-dialog.vue --- packages/client/src/components/cropper-dialog.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/cropper-dialog.vue b/packages/client/src/components/cropper-dialog.vue index 6f4a6f122..12d9414d2 100644 --- a/packages/client/src/components/cropper-dialog.vue +++ b/packages/client/src/components/cropper-dialog.vue @@ -18,7 +18,7 @@
- +
@@ -34,7 +34,8 @@ import XModalWindow from '@/components/ui/modal-window.vue'; import * as os from '@/os'; import { $i } from '@/account'; import { defaultStore } from '@/store'; -import { apiUrl } from '@/config'; +import { apiUrl, url } from '@/config'; +import { query } from '@/scripts/url'; const emit = defineEmits<{ (ev: 'ok', cropped: misskey.entities.DriveFile): void; @@ -47,6 +48,9 @@ const props = defineProps<{ aspectRatio: number; }>(); +const imgUrl = `${url}/proxy/image.webp?${query({ + url, +})}`; let dialogEl = $ref>(); let imgEl = $ref(); let cropper: Cropper | null = null;