fix:修复错误跳转无query的场景
This commit is contained in:
parent
0b0cbf9c5b
commit
e48a6ed064
|
|
@ -59,13 +59,13 @@ export function useIframeSkill(
|
|||
// }, [searchParams]);
|
||||
|
||||
// 0. 监听 query 中 is_chatting=true 且带 thread_id 时跳转到 thread 页面
|
||||
useEffect(() => {
|
||||
if (!threadId) return;
|
||||
if (isChattingFromQuery !== "true") return;
|
||||
if (lastThreadIdRef.current === threadId) return;
|
||||
lastThreadIdRef.current = threadId;
|
||||
router.replace(`/workspace/chats/${threadId}`);
|
||||
}, [isChattingFromQuery, router, threadId]);
|
||||
// useEffect(() => {
|
||||
// if (!threadId) return;
|
||||
// if (isChattingFromQuery !== "true") return;
|
||||
// if (lastThreadIdRef.current === threadId) return;
|
||||
// lastThreadIdRef.current = threadId;
|
||||
// router.replace(`/workspace/chats/${threadId}`);
|
||||
// }, [isChattingFromQuery, router, threadId]);
|
||||
|
||||
// 2. 监听宿主页 postMessage
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue