feat: change deck edit style and add agent

This commit is contained in:
2024-09-28 02:52:56 +08:00
parent 2e55d718a8
commit fa055d15cc
14 changed files with 620 additions and 33 deletions

View File

@@ -19,9 +19,13 @@ const serverPath = [
links: ['/'],
},
{
path: 'ai-chat',
path: 'prompt',
links: ['/'],
},
{
path: 'agent',
links: ['edit/list'],
},
];
const ServerPath = () => {
const navigate = useNavigate();
@@ -41,6 +45,11 @@ const ServerPath = () => {
if (hasId) {
return;
}
console.log('link', link);
if (link === '/') {
navigate(`/${item.path}`);
return;
}
if (link) {
navigate(`/${item.path}/${link}`);
} else {