Skip to content

Commit c96f3ce

Browse files
committed
【优化】增加 image mj 按钮回调
1 parent 29e1426 commit c96f3ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/views/ai/image/ImageTask.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ const handlerImageBtnClick = async (type, imageDetail: ImageDetailVO) => {
6363
}
6464
6565
/** 图片 - mj btn click */
66-
const handlerImageMjBtnClick = async (button: ImageMjButtonsVO) => {
67-
console.log('mj click', button)
66+
const handlerImageMjBtnClick = async (button: ImageMjButtonsVO, imageDetail: ImageDetailVO) => {
67+
console.log('mj click', button, imageDetail)
6868
}
6969
7070
/** 下载 - image */

src/views/ai/image/ImageTaskCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const handlerLoading = async (status: number) => {
6767
6868
/** mj 按钮 click */
6969
const handlerMjBtnClick = async (button: ImageMjButtonsVO) => {
70-
emits('onMjBtnClick', button)
70+
emits('onMjBtnClick', button, props.imageDetail)
7171
}
7272
7373
// watch

0 commit comments

Comments
 (0)