From 2211618ada6c890c78bb213ca1823b052850645e Mon Sep 17 00:00:00 2001 From: cherishsince Date: Tue, 28 May 2024 10:37:44 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91AI=20Image?= =?UTF-8?q?=20=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ai/image/index.ts | 4 ++++ src/views/ai/image/ImageTask.vue | 13 ++++++++++++- src/views/ai/image/index.vue | 4 +++- 3 files changed, 19 insertions(+), 2 deletions(-) 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 @@