【增加】midjourney button 操作二次确认

This commit is contained in:
cherishsince 2024-06-18 10:06:14 +08:00
parent efcf64ed7d
commit 79819aed19

View File

@ -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<any>() // image ref
const cardImageLoadingInstance = ref<any>() // image ref
const message = useMessage()
const props = defineProps({
imageDetail: {
type: Object as PropType<ImageDetailVO>,
@ -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)
}