mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-27 10:43:45 +00:00
fix login with wrong path
This commit is contained in:
@@ -14,7 +14,8 @@ export default {
|
||||
const { from } = locationQuery
|
||||
yield put({ type: 'app/query' })
|
||||
if (!pathMatchRegexp('/login', from)) {
|
||||
router.push(from)
|
||||
if (from === '/') router.push('/dashboard')
|
||||
else router.push(from)
|
||||
} else {
|
||||
router.push('/dashboard')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user