Merge branch 'trunk' into feat/partner
* trunk: feat: login
This commit is contained in:
@ -25,6 +25,9 @@ export const isCompanyMode = () => getRoleType() === RoleType.Company;
|
||||
export const switchDefaultTab = async () => {
|
||||
await sleep(1);
|
||||
const mode = getRoleType();
|
||||
if (!mode) {
|
||||
return;
|
||||
}
|
||||
const tabList = mode === RoleType.Anchor ? ANCHOR_TAB_LIST : COMPANY_TAB_LIST;
|
||||
const item = tabList[0];
|
||||
store.dispatch(changeHomePage(item.type));
|
||||
|
||||
Reference in New Issue
Block a user