From 79819aed19b490b190b45ed9d8cac981645a6a1c Mon Sep 17 00:00:00 2001 From: cherishsince Date: Tue, 18 Jun 2024 10:06:14 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91midjourney?= =?UTF-8?q?=20button=20=E6=93=8D=E4=BD=9C=E4=BA=8C=E6=AC=A1=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ai/image/ImageTaskCard.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/ai/image/ImageTaskCard.vue b/src/views/ai/image/ImageTaskCard.vue index 6da2214c..c73c3c1a 100644 --- a/src/views/ai/image/ImageTaskCard.vue +++ b/src/views/ai/image/ImageTaskCard.vue @@ -34,11 +34,11 @@ import {Delete, Download, More} from "@element-plus/icons-vue"; import {ImageDetailVO, ImageMjButtonsVO} from "@/api/ai/image"; import {PropType} from "vue"; -import {ElLoading} from "element-plus"; +import {ElLoading, ElMessageBox} from "element-plus"; const cardImageRef = ref() // 卡片 image ref const cardImageLoadingInstance = ref() // 卡片 image ref - +const message = useMessage() const props = defineProps({ imageDetail: { type: Object as PropType, @@ -68,6 +68,8 @@ const handlerLoading = async (status: number) => { /** mj 按钮 click */ const handlerMjBtnClick = async (button: ImageMjButtonsVO) => { + // 确认窗体 + await message.confirm(`确认操作 "${button.label} ${button.emoji}" ?`) emits('onMjBtnClick', button, props.imageDetail) }