From 616fe2c3c1f0328e9e994fa32be9c63941582774 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Thu, 30 May 2024 16:30:39 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91midjourney?= =?UTF-8?q?=20=E6=A8=A1=E5=9E=8B=E9=BB=98=E8=AE=A4=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ai/image/midjourney/index.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/views/ai/image/midjourney/index.vue b/src/views/ai/image/midjourney/index.vue index f9600b16..8d423124 100644 --- a/src/views/ai/image/midjourney/index.vue +++ b/src/views/ai/image/midjourney/index.vue @@ -77,7 +77,7 @@ interface ImageSizeVO { // 定义属性 const prompt = ref('') // 提示词 -const selectHotWord = ref('midjourney') // 选中的热词 +const selectHotWord = ref('') // 选中的热词 const hotWords = ref(['中国旗袍', '古装美女', '卡通头像', '机甲战士', '童话小屋', '中国长城']) // 热词 const selectModel = ref() // 选中的热词 const models = ref([ @@ -92,6 +92,7 @@ const models = ref([ image: 'https://bigpt8.com/pc/_nuxt/nj.ca79b143.png', }, ]) // 模型 +selectModel.value = models.value[0] // 默认选中 // 定义 Props const props = defineProps({}) @@ -115,10 +116,6 @@ const handlerHotWordClick = async (hotWord: string) => { * 模型 - click */ const handlerModelClick = async (model: ImageModelVO) => { - if (selectModel.value === model) { - selectModel.value = {} as ImageModelVO - return - } selectModel.value = model }