【增加】AI Image 增加生成中 ref

This commit is contained in:
cherishsince 2024-05-27 18:17:37 +08:00
parent 805745f384
commit f74e8e6689

View File

@ -27,6 +27,7 @@ const imageTaskRef = ref<any>() // image task ref
// //
const selectModel = ref('DALL3绘画') const selectModel = ref('DALL3绘画')
const modelOptions = ['DALL3绘画', 'MJ绘画'] const modelOptions = ['DALL3绘画', 'MJ绘画']
const drawIn = ref<boolean>(false) //
/** /**
@ -34,12 +35,14 @@ const modelOptions = ['DALL3绘画', 'MJ绘画']
*/ */
const handlerDrawStart = async (type) => { const handlerDrawStart = async (type) => {
// todo // todo
drawIn.value = true
} }
/** /**
* 绘画 - complete * 绘画 - complete
*/ */
const handlerDrawComplete = async (type) => { const handlerDrawComplete = async (type) => {
drawIn.value = false
// todo // todo
await imageTaskRef.value.getImageList() await imageTaskRef.value.getImageList()
} }