mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-11 13:49:03 +08:00
parent
0f85e3557b
commit
f1366e8e19
@ -145,7 +145,7 @@ const Apps = ({
|
|||||||
if (onSuccess)
|
if (onSuccess)
|
||||||
onSuccess()
|
onSuccess()
|
||||||
localStorage.setItem(NEED_REFRESH_APP_LIST_KEY, '1')
|
localStorage.setItem(NEED_REFRESH_APP_LIST_KEY, '1')
|
||||||
getRedirection(isCurrentWorkspaceEditor, app, push)
|
getRedirection(isCurrentWorkspaceEditor, { id: app.app_id }, push)
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
Toast.notify({ type: 'error', message: t('app.newApp.appCreateFailed') })
|
Toast.notify({ type: 'error', message: t('app.newApp.appCreateFailed') })
|
||||||
|
@ -4,12 +4,12 @@ export const getRedirection = (
|
|||||||
redirectionFunc: (href: string) => void,
|
redirectionFunc: (href: string) => void,
|
||||||
) => {
|
) => {
|
||||||
if (!isCurrentWorkspaceEditor) {
|
if (!isCurrentWorkspaceEditor) {
|
||||||
redirectionFunc(`/app/${app.app_id}/overview`)
|
redirectionFunc(`/app/${app.id}/overview`)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (app.mode === 'workflow' || app.mode === 'advanced-chat')
|
if (app.mode === 'workflow' || app.mode === 'advanced-chat')
|
||||||
redirectionFunc(`/app/${app.app_id}/workflow`)
|
redirectionFunc(`/app/${app.id}/workflow`)
|
||||||
else
|
else
|
||||||
redirectionFunc(`/app/${app.app_id}/configuration`)
|
redirectionFunc(`/app/${app.id}/configuration`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user