mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-06 08:43:49 +08:00
fix: work_mode 不匹配问题
This commit is contained in:
@@ -137,11 +137,13 @@ const Chat = () => {
|
||||
color: 'info',
|
||||
},
|
||||
};
|
||||
return (
|
||||
<StyledLabel color={value ? workModeMap[value]['color'] : 'default'}>
|
||||
{value ? workModeMap[value]['name'] : '未知'}
|
||||
</StyledLabel>
|
||||
);
|
||||
|
||||
const current = workModeMap[value!] || {
|
||||
color: 'default',
|
||||
name: '未知',
|
||||
};
|
||||
|
||||
return <StyledLabel color={current.color}>{current.name}</StyledLabel>;
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user