From f74e8e6689f0dbd181075c4cf94851d4540a6a25 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Mon, 27 May 2024 18:17:37 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91AI=20Image?= =?UTF-8?q?=20=E5=A2=9E=E5=8A=A0=E7=94=9F=E6=88=90=E4=B8=AD=20ref?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ai/image/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/ai/image/index.vue b/src/views/ai/image/index.vue index c72670d2..ad29d6e0 100644 --- a/src/views/ai/image/index.vue +++ b/src/views/ai/image/index.vue @@ -27,6 +27,7 @@ const imageTaskRef = ref() // image task ref // 定义属性 const selectModel = ref('DALL3绘画') const modelOptions = ['DALL3绘画', 'MJ绘画'] +const drawIn = ref(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() }