Skip to content

Commit 082db5e

Browse files
authored
Merge e7e6229 into 1440045
2 parents 1440045 + e7e6229 commit 082db5e

File tree

1 file changed

+4
-3
lines changed
  • dolphinscheduler-ui/src/views/projects/workflow/components/dag

1 file changed

+4
-3
lines changed

dolphinscheduler-ui/src/views/projects/workflow/components/dag/dag-toolbar.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)