From a854e96343ab7c955ba256fa415b738b311d07f5 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 17 Jul 2024 08:50:06 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E3=80=91AI=EF=BC=9A=E7=BB=98=E5=9B=BE=E7=94=BB=E5=BB=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ai/image/index.ts | 11 +++++------ src/views/ai/image/square/index.vue | 19 +++++++++---------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/api/ai/image/index.ts b/src/api/ai/image/index.ts index 8eb16105..5f8f13ca 100644 --- a/src/api/ai/image/index.ts +++ b/src/api/ai/image/index.ts @@ -56,6 +56,10 @@ export const ImageApi = { getImagePageMy: async (params: PageParam) => { return await request.get({ url: `/ai/image/my-page`, params }) }, + // 获取公开的绘图记录 + getImagePagePublic: async (params: PageParam) => { + return await request.get({ url: `/ai/image/public-page`, params }) + }, // 获取【我的】绘图记录 getImageMy: async (id: number) => { return await request.get({ url: `/ai/image/get-my?id=${id}` }) @@ -99,10 +103,5 @@ export const ImageApi = { // 删除绘画 deleteImage: async (id: number) => { return await request.delete({ url: `/ai/image/delete?id=` + id }) - }, - - // release 列表 - publicList: async (params) => { - return await request.get({ url: `/ai/image/public-list`, params}) - }, + } } diff --git a/src/views/ai/image/square/index.vue b/src/views/ai/image/square/index.vue index c8e2c4bf..81643d19 100644 --- a/src/views/ai/image/square/index.vue +++ b/src/views/ai/image/square/index.vue @@ -1,22 +1,23 @@