Unverified Commit 07aa8044 authored by 陈小聪's avatar 陈小聪 Committed by GitHub

Repeated addition search (#3828)

Close: #3791 
Close: #3835
parent 22303139
...@@ -53,14 +53,17 @@ export default { ...@@ -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,
); }),
})
);
}
}, },
}, },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment