diff --git a/src/models/app.js b/src/models/app.js index 7be3314..4d3919f 100644 --- a/src/models/app.js +++ b/src/models/app.js @@ -106,7 +106,7 @@ export default { routeList, }, }) - if (pathMatchRegexp('/login', window.location.pathname)) { + if (pathMatchRegexp(['/','/login'], window.location.pathname)) { router.push({ pathname: '/dashboard', })