refactor: Reorganize sidebar navigation and add personal settings route

This commit is contained in:
1808837298@qq.com
2025-03-07 17:22:37 +08:00
parent 7f74a9664e
commit fd22948ead
6 changed files with 254 additions and 118 deletions

View File

@@ -18,6 +18,8 @@ const CLAUDE_HEADER = {
const CLAUDE_DEFAULT_MAX_TOKENS = {
'default': 8192,
"claude-3-haiku-20240307": 4096,
"claude-3-opus-20240229": 4096,
'claude-3-7-sonnet-20250219-thinking': 8192,
}

View File

@@ -18,9 +18,6 @@ const Setting = () => {
const [tabActiveKey, setTabActiveKey] = useState('1');
let panes = [
{
tab: t('个人设置'),
content: <PersonalSetting />,
itemKey: 'personal',
},
];
@@ -61,7 +58,7 @@ const Setting = () => {
if (tab) {
setTabActiveKey(tab);
} else {
onChangeTab('personal');
onChangeTab('operation');
}
}, [location.search]);
return (