【增加】NIJI 增加版本控制

This commit is contained in:
cherishsince 2024-06-18 11:02:41 +08:00
parent 79819aed19
commit 27d7fe48c6

View File

@ -171,7 +171,8 @@ selectImageSize.value = imageSizeList.value[0]
// version
const versionList = ref<any>([
let versionList = ref<any>([]) // version
const midjourneyVersionList = ref<any>([
{
value: '6.0',
label: 'v6.0',
@ -192,8 +193,15 @@ const versionList = ref<any>([
value: '4.0',
label: 'v4.0',
},
]) // version
])
const nijiVersionList = ref<any>([
{
value: '5.0',
label: 'v5.0',
},
])
const selectVersion = ref<any>('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 */