generated from duanshuwen/webapp-vue-frontend
feat: 增加生成的字段
This commit is contained in:
1 parent
b85ca288a0
commit
e4785c7ffa
3 files changed
+3
-1
No files matched your search
@@ -5,6 +5,7 @@ import type { Response } from './types';
|
||||
|
||||
export interface CreateGeneratorPhotoTaskRequest {
|
||||
photoUrlList: string[];
|
||||
sceneId: string;
|
||||
}
|
||||
|
||||
export const createGeneratorPhotoTask = (params: CreateGeneratorPhotoTaskRequest) => {
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user