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');