Compare commits

..

No commits in common. "bc33c158bb9d542159315b86e292e5315c74a7a7" and "a869ea0827f1f5df622fe3472ce6bbc5ed82f22e" have entirely different histories.

2 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,4 @@
import { View, ScrollView, Canvas } from '@tarojs/components';
import { View, ScrollView } from '@tarojs/components';
import { useEffect, useState } from 'react';
import Taro, { navigateTo } from '@tarojs/taro';
import { useAppDispatch, useAppSelector } from '../../hooks/redux';
@ -92,9 +92,8 @@ export default function Home() {
const handleTemplateClick = async (template: Template) => {
try {
// 第一步:选择并上传图片
const imageCount = template.templateType === '2image-to-video' ? 2 : 1;
const imageUrl = await sdk.chooseAndUploadImage({
count: imageCount,
onImageSelected: () => {
Taro.showLoading({
title: getLoadingText('uploading'),

View File

@ -18,7 +18,6 @@ export interface Template {
inputExample: string; // 原始图片
outputExample: string; // 输出图片
tags: string[]; // 标签数组
templateType: string; // 模板类型
}
/**