Merge remote-tracking branch 'origin/websocket' into chat_and_cache
This commit is contained in:
commit
1b8f4ce2bd
2 changed files with 4 additions and 4 deletions
|
|
@ -28,7 +28,7 @@ export default function ChatMessage({ chat }: { chat: ChatMessageType }) {
|
|||
</div>
|
||||
{!chat.isSend ? (
|
||||
<div className="w-full text-start flex items-center">
|
||||
<div className="w-full relative text-start inline-block text-gray-600 text-sm font-normal">
|
||||
<div className=" relative text-start inline-block text-gray-600 text-sm font-normal">
|
||||
{hidden && chat.thought && chat.thought !== "" && (
|
||||
<div
|
||||
onClick={() => setHidden((prev) => !prev)}
|
||||
|
|
|
|||
|
|
@ -115,9 +115,9 @@ export default function ChatModal({
|
|||
console.log(data);
|
||||
}
|
||||
} catch (error) {
|
||||
setErrorData({ title: event.data });
|
||||
if (newWs.readyState === newWs.CLOSED) {
|
||||
window.alert(error);
|
||||
if(event.data!=="Error: 1005"){
|
||||
setErrorData({ title: event.data });
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue