fix:补上向主页面发送isChatting的逻辑
This commit is contained in:
parent
9b8bc09414
commit
345a143e38
|
|
@ -1271,8 +1271,12 @@ function HistoryButton({
|
||||||
<Tooltip content={t.inputBox.history}>
|
<Tooltip content={t.inputBox.history}>
|
||||||
<WorkspaceToolButton
|
<WorkspaceToolButton
|
||||||
className={cn("text-ws-base-1 hover:text-ws-interactive-primary", className)}
|
className={cn("text-ws-base-1 hover:text-ws-interactive-primary", className)}
|
||||||
onClick={() =>
|
onClick={() =>{
|
||||||
router.replace(`/workspace/chats/${threadId}?is_chatting=true`)
|
sendToParent({
|
||||||
|
type: POST_MESSAGE_TYPES.IS_CHATTING,
|
||||||
|
isChatting: true,
|
||||||
|
});
|
||||||
|
router.replace(`/workspace/chats/${threadId}?is_chatting=true`)}
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
|
|
@ -1318,9 +1322,13 @@ function ExitChattingButton({
|
||||||
"text-ws-base-1 hover:text-ws-interactive-primary",
|
"text-ws-base-1 hover:text-ws-interactive-primary",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
onClick={() =>
|
onClick={() => {
|
||||||
router.replace(`/workspace/chats/${threadId}?is_chatting=false`)
|
sendToParent({
|
||||||
}
|
type: POST_MESSAGE_TYPES.IS_CHATTING,
|
||||||
|
isChatting: false,
|
||||||
|
});
|
||||||
|
router.replace(`/workspace/chats/${threadId}?is_chatting=false`);
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
className="transition-[color] duration-200"
|
className="transition-[color] duration-200"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue