Browse Source

[Fix][UI Next] Fix the router problem of click to log out. (#8109)

3.0.0/version-upgrade
songjianet 3 years ago committed by GitHub
parent
commit
66bc76ceda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-ui-next/src/layouts/content/components/user/use-dropdown.ts

6
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' })
})
}

Loading…
Cancel
Save