From ee10965f43b8d5e78d5e362ff40a285d6d727606 Mon Sep 17 00:00:00 2001 From: Baorong Li Date: Fri, 14 Sep 2018 11:32:28 +0800 Subject: [PATCH] fix first page jump to login fail --- src/models/app.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/models/app.js b/src/models/app.js index 8dee83d..507d86d 100644 --- a/src/models/app.js +++ b/src/models/app.js @@ -103,14 +103,14 @@ export default { config.openPages && config.openPages.indexOf(locationPathname) < 0 ) { - // yield put( - // routerRedux.push({ - // pathname: '/login', - // search: stringify({ - // from: locationPathname, - // }), - // }) - // ) + yield put( + routerRedux.push({ + pathname: '/login', + search: stringify({ + from: locationPathname, + }), + }) + ) } },