fix #935 root path / will be not found after login

This commit is contained in:
Baorong Li
2019-01-10 17:36:23 +08:00
committed by GitHub
parent 10f8e3e8ef
commit 34be6651e5
+1 -1
View File
@@ -106,7 +106,7 @@ export default {
routeList,
},
})
if (pathMatchRegexp('/login', window.location.pathname)) {
if (pathMatchRegexp(['/','/login'], window.location.pathname)) {
router.push({
pathname: '/dashboard',
})