Merge pull request #355 from blackboyhc/master

Update app.js
This commit is contained in:
zuiidea
2017-06-19 10:18:58 +08:00
committed by GitHub
+1 -4
View File
@@ -43,11 +43,8 @@ export default {
yield put(routerRedux.push('/dashboard'))
}
} else {
if (location.pathname !== '/login') {
if (config.openPages && config.openPages.indexOf(location.pathname) < 0) {
let from = location.pathname
if (location.pathname === '/dashboard') {
from = '/dashboard'
}
window.location = `${location.origin}/login?from=${from}`
}
}