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 31d8b30e3e..abe62e60a6 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' }) }) }