diff --git a/src/views/login/index.vue b/src/views/login/index.vue index f1e0ef2..62af478 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -38,7 +38,9 @@ async function handleLogin() { setToken(res.data.token) if (query.redirect) { - router.push({ path: '/redirect', query }) + const path = query.redirect + Reflect.deleteProperty(query, 'redirect') + router.push({ path, query }) } else { router.push('/') }