generated from duanshuwen/webapp-vue-frontend
feat: 增加生成的字段
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script type="module" src="/src/main.js"></script>
|
<script type="module" src="/src/main.js"></script>
|
||||||
|
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
@@ -5,6 +5,7 @@ import type { Response } from './types';
|
|||||||
|
|
||||||
export interface CreateGeneratorPhotoTaskRequest {
|
export interface CreateGeneratorPhotoTaskRequest {
|
||||||
photoUrlList: string[];
|
photoUrlList: string[];
|
||||||
|
sceneId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const createGeneratorPhotoTask = (params: CreateGeneratorPhotoTaskRequest) => {
|
export const createGeneratorPhotoTask = (params: CreateGeneratorPhotoTaskRequest) => {
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ window.addEventListener('hashchange', function() {
|
|||||||
const sendGeneratorPhotoTask = async (photoUrl: string) => {
|
const sendGeneratorPhotoTask = async (photoUrl: string) => {
|
||||||
const photoUrlList = [photoUrl];
|
const photoUrlList = [photoUrl];
|
||||||
try {
|
try {
|
||||||
const response = await createGeneratorPhotoTask({ photoUrlList: photoUrlList });
|
const response = await createGeneratorPhotoTask({ photoUrlList: photoUrlList, sceneId: activeScene.value.sceneCode });
|
||||||
if (response) {
|
if (response) {
|
||||||
showSuccessToast('生成任务创建成功!');
|
showSuccessToast('生成任务创建成功!');
|
||||||
router.push('/generate');
|
router.push('/generate');
|
||||||
|
|||||||
Reference in New Issue
Block a user