You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by so...@apache.org on 2022/04/14 06:09:47 UTC
[dolphinscheduler] branch dev updated: [Fix][Next-UI] Fix the jumping problem of close button on dag page. (#9494)
This is an automated email from the ASF dual-hosted git repository.
songjian pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 8a2fbd205e [Fix][Next-UI] Fix the jumping problem of close button on dag page. (#9494)
8a2fbd205e is described below
commit 8a2fbd205e9b5b080a5bb33ba17984b896a6e442
Author: Amy0104 <97...@users.noreply.github.com>
AuthorDate: Thu Apr 14 14:09:40 2022 +0800
[Fix][Next-UI] Fix the jumping problem of close button on dag page. (#9494)
---
.../projects/workflow/components/dag/dag-toolbar.tsx | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-toolbar.tsx b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-toolbar.tsx
index 199f5ad5b1..4ff8c2cb4e 100644
--- a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-toolbar.tsx
+++ b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-toolbar.tsx
@@ -140,7 +140,22 @@ export default defineComponent({
* Back to the entrance
*/
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
+ }
}
/**