【增加】image 增加重新生成操作(值已经完成切换,还不能完全填充值)

This commit is contained in:
cherishsince committed 2024-07-03 22:04:59 +08:00
1 parent 5c560e2fbe
commit ed786b2db6
6 files changed
+74 -6

No files matched your search

+7
View File
@@ -130,6 +130,10 @@ const handlerImageBtnClick = async (type: string, imageDetail: ImageVO) => {
message.success('删除成功!')
} else if (type === 'download') {
await downloadImage(imageDetail.picUrl)
} else if (type === 'regeneration') {
// Midjourney 平台
console.log('regeneration', imageDetail.id)
await emits('onRegeneration', imageDetail)
}
}
@@ -175,6 +179,9 @@ const handlerPageChange = async (page) => {
/** 暴露组件方法 */
defineExpose({ getImageList })
// emits
const emits = defineEmits(['onRegeneration'])
/** 组件挂在的时候 */
onMounted(async () => {
// 获取 image 列表