diff --git a/src/api/index.js b/src/api/index.js index fd1c62eb..afb7309b 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -8,7 +8,7 @@ const toLogin = () => { router.push({ path: '/login', query: { - redirect: router.currentRoute.fullPath + redirect: router.currentRoute.value.path !== '/login' ? router.currentRoute.value.fullPath : undefined } }) }