Skip to content

Commit f74e8e6

Browse files
committed
【增加】AI Image 增加生成中 ref
1 parent 805745f commit f74e8e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/views/ai/image/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,22 @@ const imageTaskRef = ref<any>() // image task ref
2727
// 定义属性
2828
const selectModel = ref('DALL3绘画')
2929
const modelOptions = ['DALL3绘画', 'MJ绘画']
30+
const drawIn = ref<boolean>(false) // 生成中
3031
3132
3233
/**
3334
* 绘画 - start
3435
*/
3536
const handlerDrawStart = async (type) => {
3637
// todo
38+
drawIn.value = true
3739
}
3840
3941
/**
4042
* 绘画 - complete
4143
*/
4244
const handlerDrawComplete = async (type) => {
45+
drawIn.value = false
4346
// todo
4447
await imageTaskRef.value.getImageList()
4548
}

0 commit comments

Comments
 (0)