[Fix][Next-UI] Fix the jumping problem of close button on dag page. (#9494)
parent
706cdb6a8e
commit
8a2fbd205e
|
|
@ -140,7 +140,22 @@ export default defineComponent({
|
||||||
* Back to the entrance
|
* Back to the entrance
|
||||||
*/
|
*/
|
||||||
const onClose = () => {
|
const onClose = () => {
|
||||||
router.go(-1)
|
if (history.state.back !== '/login') {
|
||||||
|
router.go(-1)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (history.state.current.includes('workflow/definitions')) {
|
||||||
|
router.push({
|
||||||
|
path: `/projects/${route.params.projectCode}/workflow-definition`
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (history.state.current.includes('workflow/instances')) {
|
||||||
|
router.push({
|
||||||
|
path: `/projects/${route.params.projectCode}/workflow/instances`
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue