fix:修复登陆成功后重定向页面空白问题
This commit is contained in:
parent
d0c5a805d8
commit
2f592f9570
@ -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('/')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user