From 4372f56db1c00c9cce49b422fb56d33fed93d1fe Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Tue, 13 Jun 2023 11:24:18 +0800 Subject: [PATCH] enhance: unread count tip ignore logout --- src/components/UnreadTabTip.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/UnreadTabTip.tsx b/src/components/UnreadTabTip.tsx index 82f804ad..63b7faf2 100644 --- a/src/components/UnreadTabTip.tsx +++ b/src/components/UnreadTabTip.tsx @@ -32,6 +32,12 @@ const UnreadTabTip = () => { }); useEffect(() => { + if (loginUid === 0) { + if (title) { + document.title = title; + } + return; + } total = 0; // dm Object.entries(dmMids).forEach(([id, mids]) => {