Merge branch 'master' into develop

This commit is contained in:
zuiidea
2017-07-06 19:08:06 +08:00
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -72,11 +72,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}`
}
}
+1 -1
View File
@@ -98,7 +98,7 @@ export default modelExtend(pageModel, {
reducers: {
showModal (state, { payload }) {
return { ...state, ...{ payload }, modalVisible: true }
return { ...state, ...payload, modalVisible: true }
},
hideModal (state) {