Browse Source

redirect of different origins will be ignored

xiaohuoni 6 năm trước cách đây
mục cha
commit
c51da8bf4c
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      src/models/login.js

+ 1 - 2
src/models/login.js

@@ -33,8 +33,7 @@ export default {
               redirect = redirect.substr(redirect.indexOf('#') + 1);
             }
           } else {
-            window.location.href = redirect;
-            return;
+            redirect = null;
           }
         }
         yield put(routerRedux.replace(redirect || '/'));