fix(ui): init services
This commit is contained in:
parent
b2d0d74e8c
commit
0536d2cd65
1 changed files with 1 additions and 1 deletions
|
|
@ -74,6 +74,7 @@ const Router: React.FC<RouterProps> = (props) => {
|
|||
};
|
||||
|
||||
const handleUserLogin = async () => {
|
||||
props.mstore.initClient();
|
||||
const destinationPath = localStorage.getItem(GLOBAL_DESTINATION_PATH);
|
||||
if (
|
||||
destinationPath &&
|
||||
|
|
@ -83,7 +84,6 @@ const Router: React.FC<RouterProps> = (props) => {
|
|||
history.push(destinationPath + location.search);
|
||||
localStorage.removeItem(GLOBAL_DESTINATION_PATH);
|
||||
}
|
||||
props.mstore.initClient();
|
||||
await fetchUserInfo();
|
||||
const siteIdFromPath = parseInt(location.pathname.split('/')[1]);
|
||||
await fetchSiteList(siteIdFromPath);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue