【增加】AI Image 增加生成中 ref
This commit is contained in:
parent
805745f384
commit
f74e8e6689
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user