From e4785c7ffa12d186d699922757281de5fdf761f5 Mon Sep 17 00:00:00 2001 From: zoujing Date: Sun, 5 Apr 2026 18:03:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=20=E5=A2=9E=E5=8A=A0=E7=94=9F=E6=88=90?= =?UTF-8?q?=E7=9A=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 1 + src/api/AigcCreateGeneratorPhotoTaskApi.ts | 1 + src/views/home/index.vue | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index d9f4eca..3a13ed6 100644 --- a/index.html +++ b/index.html @@ -15,6 +15,7 @@
+ \ No newline at end of file diff --git a/src/api/AigcCreateGeneratorPhotoTaskApi.ts b/src/api/AigcCreateGeneratorPhotoTaskApi.ts index f1c8e09..cca6c6e 100644 --- a/src/api/AigcCreateGeneratorPhotoTaskApi.ts +++ b/src/api/AigcCreateGeneratorPhotoTaskApi.ts @@ -5,6 +5,7 @@ import type { Response } from './types'; export interface CreateGeneratorPhotoTaskRequest { photoUrlList: string[]; + sceneId: string; } export const createGeneratorPhotoTask = (params: CreateGeneratorPhotoTaskRequest) => { diff --git a/src/views/home/index.vue b/src/views/home/index.vue index b41a567..a5fbaf4 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -141,7 +141,7 @@ window.addEventListener('hashchange', function() { const sendGeneratorPhotoTask = async (photoUrl: string) => { const photoUrlList = [photoUrl]; try { - const response = await createGeneratorPhotoTask({ photoUrlList: photoUrlList }); + const response = await createGeneratorPhotoTask({ photoUrlList: photoUrlList, sceneId: activeScene.value.sceneCode }); if (response) { showSuccessToast('生成任务创建成功!'); router.push('/generate');