From 09e9383b1e24e2e0a774ec4a97898cee336f1d4a Mon Sep 17 00:00:00 2001
From: Gavan <994259213@qq.com>
Date: Tue, 9 Sep 2025 10:41:09 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20work=5Fmode=20=E4=B8=8D=E5=8C=B9?=
=?UTF-8?q?=E9=85=8D=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ui/src/pages/chat/index.tsx | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/ui/src/pages/chat/index.tsx b/ui/src/pages/chat/index.tsx
index b7c8eca..dae5793 100644
--- a/ui/src/pages/chat/index.tsx
+++ b/ui/src/pages/chat/index.tsx
@@ -137,11 +137,13 @@ const Chat = () => {
color: 'info',
},
};
- return (
-
- {value ? workModeMap[value]['name'] : '未知'}
-
- );
+
+ const current = workModeMap[value!] || {
+ color: 'default',
+ name: '未知',
+ };
+
+ return {current.name};
},
},
{