Commit f74e8e66 by cherishsince

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

parent 805745f3
......@@ -27,6 +27,7 @@ const imageTaskRef = ref<any>() // image task ref
// 定义属性
const selectModel = ref('DALL3绘画')
const modelOptions = ['DALL3绘画', 'MJ绘画']
const drawIn = ref<boolean>(false) // 生成中
/**
......@@ -34,12 +35,14 @@ const modelOptions = ['DALL3绘画', 'MJ绘画']
*/
const handlerDrawStart = async (type) => {
// todo
drawIn.value = true
}
/**
* 绘画 - complete
*/
const handlerDrawComplete = async (type) => {
drawIn.value = false
// todo
await imageTaskRef.value.getImageList()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment