From 27d7fe48c60a61eb0a78de29db449c8a32db3807 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Tue, 18 Jun 2024 11:02:41 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91NIJI=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=89=88=E6=9C=AC=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ai/image/midjourney/index.vue | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/views/ai/image/midjourney/index.vue b/src/views/ai/image/midjourney/index.vue index aad47d83..40740b79 100644 --- a/src/views/ai/image/midjourney/index.vue +++ b/src/views/ai/image/midjourney/index.vue @@ -171,7 +171,8 @@ selectImageSize.value = imageSizeList.value[0] // version -const versionList = ref([ +let versionList = ref([]) // version 列表 +const midjourneyVersionList = ref([ { value: '6.0', label: 'v6.0', @@ -192,8 +193,15 @@ const versionList = ref([ value: '4.0', label: 'v4.0', }, -]) // version 列表 +]) +const nijiVersionList = ref([ + { + value: '5.0', + label: 'v5.0', + }, +]) const selectVersion = ref('6.0') // 选中的 version +versionList.value = midjourneyVersionList.value // 默认选择 midjourney // 定义 Props const props = defineProps({}) @@ -223,6 +231,12 @@ const handlerSizeClick = async (imageSize: ImageSizeVO) => { /** 模型 - click */ const handlerModelClick = async (model: ImageModelVO) => { selectModel.value = model + if (model.key === 'niji') { + versionList.value = nijiVersionList.value // 默认选择 niji + } else { + versionList.value = midjourneyVersionList.value // 默认选择 midjourney + } + selectVersion.value = versionList.value[0].value } /** version - click */