File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
dolphinscheduler-ui/src/views/projects/workflow/components/dag Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -148,17 +148,18 @@ export default defineComponent({
148148 * Back to the entrance
149149 */
150150 const onClose = ( ) => {
151- if ( history . state . back !== '/login' ) {
151+ const { back, current } = history . state
152+ if ( back && back !== '/login' ) {
152153 router . go ( - 1 )
153154 return
154155 }
155- if ( history . state . current . includes ( 'workflow/definitions' ) ) {
156+ if ( ! back || current . includes ( 'workflow/definitions' ) ) {
156157 router . push ( {
157158 path : `/projects/${ route . params . projectCode } /workflow-definition`
158159 } )
159160 return
160161 }
161- if ( history . state . current . includes ( 'workflow/instances' ) ) {
162+ if ( current . includes ( 'workflow/instances' ) ) {
162163 router . push ( {
163164 path : `/projects/${ route . params . projectCode } /workflow/instances`
164165 } )
You can’t perform that action at this time.
0 commit comments