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(); reloadAuthorized();
yield put( // redirect
routerRedux.replace({ if (window.location.pathname !== '/user/login') {
pathname: '/user/login', yield put(
search: stringify({ routerRedux.replace({
redirect: window.location.href, pathname: '/user/login',
}), search: stringify({
}) redirect: window.location.href,
); }),
})
);
}
}, },
}, },

Loading…
Cancel
Save