mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-29 12:37:20 +00:00
fix #935 root path / will be not found after login
This commit is contained in:
+1
-1
@@ -106,7 +106,7 @@ export default {
|
||||
routeList,
|
||||
},
|
||||
})
|
||||
if (pathMatchRegexp('/login', window.location.pathname)) {
|
||||
if (pathMatchRegexp(['/','/login'], window.location.pathname)) {
|
||||
router.push({
|
||||
pathname: '/dashboard',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user