From 34be6651e5b578e992de50f44524630eca48a9af Mon Sep 17 00:00:00 2001 From: Baorong Li Date: Thu, 10 Jan 2019 17:36:23 +0800 Subject: [PATCH] fix #935 root path / will be not found after login --- src/models/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', })