diff --git a/app/activate/page.tsx b/app/activate/page.tsx index 5fdc04d..c55c2eb 100644 --- a/app/activate/page.tsx +++ b/app/activate/page.tsx @@ -30,8 +30,7 @@ function ConfirmEmail({ t }: { t: string }) { setMessage('Invalid verification token'); return; } - - post(`${process.env.NEXT_PUBLIC_JAVA_URL}/api/user/activate?t=${t}`) + post(`/auth/activate?t=${t}`) .then((res) => { setStatus('success'); setMessage('Your registration has been verified. Please return to the official website to log in.'); diff --git a/components/ChatInputBox/ChatInputBox.tsx b/components/ChatInputBox/ChatInputBox.tsx index d74bd03..12cff40 100644 --- a/components/ChatInputBox/ChatInputBox.tsx +++ b/components/ChatInputBox/ChatInputBox.tsx @@ -812,6 +812,24 @@ export function ChatInputBox({ noData }: { noData: boolean }) { videoDuration: "1min", }); + // 从 localStorage 初始化配置 + useEffect(() => { + const savedConfig = localStorage.getItem('videoFlowConfig'); + if (savedConfig) { + try { + const parsed = JSON.parse(savedConfig); + setConfigOptions({ + mode: parsed.mode || "auto", + resolution: parsed.resolution || "720p", + language: parsed.language || "english", + videoDuration: parsed.videoDuration || "1min", + }); + } catch (error) { + console.warn('解析保存的配置失败,使用默认配置:', error); + } + } + }, []); + // 配置项显示控制状态 const [showConfigOptions, setShowConfigOptions] = useState(false); @@ -918,9 +936,16 @@ export function ChatInputBox({ noData }: { noData: boolean }) {