mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-21 22:35:07 +08:00
【增加】ai 作图 other模块,临时提交
This commit is contained in:
@ -18,6 +18,12 @@
|
||||
ref="stableDiffusionRef"
|
||||
@on-draw-complete="handleDrawComplete"
|
||||
/>
|
||||
<Other
|
||||
v-if="selectPlatform === 'other'"
|
||||
ref="otherRef"
|
||||
@on-draw-complete="handleDrawComplete"
|
||||
/>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="main">
|
||||
@ -33,11 +39,13 @@ import { ImageVO } from '@/api/ai/image'
|
||||
import Dall3 from './components/dall3/index.vue'
|
||||
import Midjourney from './components/midjourney/index.vue'
|
||||
import StableDiffusion from './components/stableDiffusion/index.vue'
|
||||
import Other from './components/other/index.vue'
|
||||
|
||||
const imageListRef = ref<any>() // image 列表 ref
|
||||
const dall3Ref = ref<any>() // dall3(openai) ref
|
||||
const midjourneyRef = ref<any>() // midjourney ref
|
||||
const stableDiffusionRef = ref<any>() // stable diffusion ref
|
||||
const otherRef = ref<any>() // stable diffusion ref
|
||||
|
||||
// 定义属性
|
||||
const selectPlatform = ref(AiPlatformEnum.MIDJOURNEY)
|
||||
@ -53,6 +61,10 @@ const platformOptions = [
|
||||
{
|
||||
label: 'Stable Diffusion',
|
||||
value: AiPlatformEnum.STABLE_DIFFUSION
|
||||
},
|
||||
{
|
||||
label: '其他',
|
||||
value: 'other'
|
||||
}
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user