From 5c560e2fbeeedf47190610e10714611be523a152 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Wed, 3 Jul 2024 20:21:08 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91mj=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=82=E8=80=83=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ai/image/midjourney/index.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/views/ai/image/midjourney/index.vue b/src/views/ai/image/midjourney/index.vue index 7f288747..64ab4fed 100644 --- a/src/views/ai/image/midjourney/index.vue +++ b/src/views/ai/image/midjourney/index.vue @@ -88,6 +88,14 @@ +
+
+ 参考图 +
+ + + +
生成内容 @@ -118,6 +126,7 @@ interface ImageSizeVO { // 定义属性 const prompt = ref('') // 提示词 +const referImage = ref() // 参考图 const selectHotWord = ref('') // 选中的热词 const hotWords = ref(['中国旗袍', '古装美女', '卡通头像', '机甲战士', '童话小屋', '中国长城']) // 热词 const selectModel = ref() // 选中的热词 @@ -247,6 +256,7 @@ const handlerGenerateImage = async () => { await message.confirm(`确认生成内容?`) // todo @范 图片生产逻辑 try { + console.log('referImage.value', referImage.value) // 回调 emits('onDrawStart', selectModel.value.key) // 发送请求 @@ -256,7 +266,7 @@ const handlerGenerateImage = async () => { width: selectImageSize.value.width, height: selectImageSize.value.height, version: selectVersion.value, - base64Array: [], + referImageUrl: referImage.value, } as ImageMidjourneyImagineReqVO await ImageApi.midjourneyImagine(req) } finally {