You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zh...@apache.org on 2022/01/18 14:53:27 UTC

[dolphinscheduler] branch dev updated: [Fix][UI Next] Fix the router problem of click to log out. (#8109)

This is an automated email from the ASF dual-hosted git repository.

zhongjiajie 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 66bc76c  [Fix][UI Next] Fix the router problem of click to log out. (#8109)
66bc76c is described below

commit 66bc76cedad0b698d53ef1968fac7a5b80f7b83f
Author: songjianet <17...@qq.com>
AuthorDate: Tue Jan 18 22:53:22 2022 +0800

    [Fix][UI Next] Fix the router problem of click to log out. (#8109)
---
 .../src/layouts/content/components/user/use-dropdown.ts             | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dolphinscheduler-ui-next/src/layouts/content/components/user/use-dropdown.ts b/dolphinscheduler-ui-next/src/layouts/content/components/user/use-dropdown.ts
index 31d8b30..abe62e6 100644
--- a/dolphinscheduler-ui-next/src/layouts/content/components/user/use-dropdown.ts
+++ b/dolphinscheduler-ui-next/src/layouts/content/components/user/use-dropdown.ts
@@ -29,9 +29,9 @@ export function useDropDown() {
     if (key === 'logout') {
       useLogout()
     } else if (key === 'password') {
-      router.push({ path: 'password' })
+      router.push({ path: '/password' })
     } else if (key === 'profile') {
-      router.push({ path: 'profile' })
+      router.push({ path: '/profile' })
     }
   }
 
@@ -39,7 +39,7 @@ export function useDropDown() {
     logout().then(() => {
       userStore.setSessionId('')
       userStore.setUserInfo({})
-      router.push({ path: 'login' })
+      router.push({ path: '/login' })
     })
   }