Explorar el Código

fix #11091 raise redirect issue (#11092)

tags/0.12.1
非法操作 hace 11 meses
padre
commit
f1366e8e19
No account linked to committer's email address
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 1
    1
      web/app/components/explore/app-list/index.tsx
  2. 3
    3
      web/utils/app-redirection.ts

+ 1
- 1
web/app/components/explore/app-list/index.tsx Ver fichero

@@ -145,7 +145,7 @@ const Apps = ({
if (onSuccess)
onSuccess()
localStorage.setItem(NEED_REFRESH_APP_LIST_KEY, '1')
getRedirection(isCurrentWorkspaceEditor, app, push)
getRedirection(isCurrentWorkspaceEditor, { id: app.app_id }, push)
}
catch (e) {
Toast.notify({ type: 'error', message: t('app.newApp.appCreateFailed') })

+ 3
- 3
web/utils/app-redirection.ts Ver fichero

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

Cargando…
Cancelar
Guardar