陈小聪
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
11 additions and
8 deletions
-
src/models/login.js
|
|
|
@ -53,14 +53,17 @@ export default { |
|
|
|
}, |
|
|
|
}); |
|
|
|
reloadAuthorized(); |
|
|
|
yield put( |
|
|
|
routerRedux.replace({ |
|
|
|
pathname: '/user/login', |
|
|
|
search: stringify({ |
|
|
|
redirect: window.location.href, |
|
|
|
}), |
|
|
|
}) |
|
|
|
); |
|
|
|
// redirect
|
|
|
|
if (window.location.pathname !== '/user/login') { |
|
|
|
yield put( |
|
|
|
routerRedux.replace({ |
|
|
|
pathname: '/user/login', |
|
|
|
search: stringify({ |
|
|
|
redirect: window.location.href, |
|
|
|
}), |
|
|
|
}) |
|
|
|
); |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|