Browse Source

redirect of different origins will be ignored

pull/3842/head
xiaohuoni 7 years ago
committed by 偏右
parent
commit
c51da8bf4c
  1. 3
      src/models/login.js

3
src/models/login.js

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

Loading…
Cancel
Save