Browse Source

Repeated addition search (#3828)

Close: #3791 
Close: #3835
pull/3842/head
陈小聪 8 years ago
committed by GitHub
parent
commit
07aa8044f5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 19
      src/models/login.js

19
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,
}),
})
);
}
},
},

Loading…
Cancel
Save