Sfoglia il codice sorgente

bug: fix the problem of logging out and backing back

chen shuai 7 anni fa
parent
commit
a9f0a18bd6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/models/login.js

+ 1 - 1
src/models/login.js

@@ -55,7 +55,7 @@ export default {
       });
       });
       reloadAuthorized();
       reloadAuthorized();
       yield put(
       yield put(
-        routerRedux.push({
+        routerRedux.replace({
           pathname: '/user/login',
           pathname: '/user/login',
           search: stringify({
           search: stringify({
             redirect: window.location.href,
             redirect: window.location.href,