From 4a525124c5eef19c75652ce010774875c50c8632 Mon Sep 17 00:00:00 2001 From: MingNian <1281442923@qq.com> Date: Fri, 22 May 2026 10:48:14 +0800 Subject: [PATCH] fix: chat history persists, reuse active consultation, load messages properly --- .../src/components/layout/TabBar.tsx | 9 +-- .../src/pages/home/HomePage.module.css | 57 ++++++++++++++---- frontend-patient/src/pages/home/HomePage.tsx | 33 ++++------- .../src/pages/services/ChatPage.tsx | 59 +++++++------------ .../src/services/consultation.service.ts | 4 +- 5 files changed, 83 insertions(+), 79 deletions(-) diff --git a/frontend-patient/src/components/layout/TabBar.tsx b/frontend-patient/src/components/layout/TabBar.tsx index cb0aece..02b4691 100644 --- a/frontend-patient/src/components/layout/TabBar.tsx +++ b/frontend-patient/src/components/layout/TabBar.tsx @@ -1,12 +1,10 @@ import { useNavigate, useLocation } from 'react-router-dom'; import { NAV_ITEMS } from '@/utils/constants'; -import { useNotificationStore } from '@/stores/notification.store'; import styles from './TabBar.module.css'; export function TabBar() { const navigate = useNavigate(); const location = useLocation(); - const unreadCount = useNotificationStore((s) => s.unreadCount); return (