diff --git a/src/api/ai/image/index.ts b/src/api/ai/image/index.ts index 10a2f779..d5813163 100644 --- a/src/api/ai/image/index.ts +++ b/src/api/ai/image/index.ts @@ -52,4 +52,8 @@ export const ImageApi = { dall: async (data: ImageDallReqVO)=> { return await request.post({ url: `/ai/image/dall`, data }) }, + // 删除 + deleteImage: async (id: number)=> { + return await request.delete({ url: `/ai/image/delete?id=${id}`}) + }, } diff --git a/src/views/ai/image/ImageTask.vue b/src/views/ai/image/ImageTask.vue index aface604..60cbbeb6 100644 --- a/src/views/ai/image/ImageTask.vue +++ b/src/views/ai/image/ImageTask.vue @@ -2,7 +2,11 @@