fix(ui): init services
This commit is contained in:
parent
bfc4cc301d
commit
b2d0d74e8c
1 changed files with 1 additions and 2 deletions
|
|
@ -83,11 +83,10 @@ 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);
|
||||
props.mstore.initClient();
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue