统一入口:创建成功调整

This commit is contained in:
北枳 2025-10-20 21:01:03 +08:00
parent 3e7a27cb7a
commit 8260f01608

View File

@ -21,7 +21,7 @@ import { useDeviceType } from '@/hooks/useDeviceType';
import { MovieProjectService, MovieProjectMode } from '@/app/service/Interaction/MovieProjectService';
import type { CreateMovieProjectV4Request } from '@/api/DTO/movie_start_dto';
import { getCurrentUser } from '@/lib/auth';
import { useRouter } from 'next/navigation';
export default function VideoCreationForm() {
const [photos, setPhotos] = useState<PhotoItem[]>([]);
const [inputText, setInputText] = useState('');
@ -34,7 +34,7 @@ export default function VideoCreationForm() {
const [isCreating, setIsCreating] = useState(false);
const { isMobile, isDesktop } = useDeviceType();
const router = useRouter();
const characterInputRef = useRef<HTMLInputElement>(null);
const sceneInputRef = useRef<HTMLInputElement>(null);
const propInputRef = useRef<HTMLInputElement>(null);
@ -235,6 +235,7 @@ export default function VideoCreationForm() {
console.log('Video creation successful, project_id:', result.project_id);
window.msg?.success(`Video created successfully! Project ID: ${result.project_id}`);
router.push(`/movies/work-flow?episodeId=${result.project_id}`);
/** TODO: Navigate to project detail page or next step */
// window.location.href = `/movies/${result.project_id}`;