fix: import Explore Apps raise error (#11091)

This commit is contained in:
非法操作 2024-11-26 09:32:08 +08:00 • committed by GitHub
commit 60c1549771
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 6 deletions

View file

@ -4,12 +4,12 @@ export const getRedirection = (
redirectionFunc: (href: string) => void,
) => {
if (!isCurrentWorkspaceEditor) {
redirectionFunc(`/app/${app.id}/overview`)
redirectionFunc(`/app/${app.app_id}/overview`)
}
else {
if (app.mode === 'workflow' || app.mode === 'advanced-chat')
redirectionFunc(`/app/${app.id}/workflow`)
redirectionFunc(`/app/${app.app_id}/workflow`)
else
redirectionFunc(`/app/${app.id}/configuration`)
redirectionFunc(`/app/${app.app_id}/configuration`)
}
}