fix:修复登陆成功后重定向页面空白问题

This commit is contained in:
zhangchuanlong 2022-03-09 12:37:18 +08:00
parent d0c5a805d8
commit 2f592f9570

View File

@ -38,7 +38,9 @@ async function handleLogin() {
setToken(res.data.token) setToken(res.data.token)
if (query.redirect) { if (query.redirect) {
router.push({ path: '/redirect', query }) const path = query.redirect
Reflect.deleteProperty(query, 'redirect')
router.push({ path, query })
} else { } else {
router.push('/') router.push('/')
} }