feat: change deck edit style and add agent
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user