Merge branch 'trunk' into feat/partner

* trunk:
  feat: login
This commit is contained in:
eleanor.mao
2025-05-22 18:13:41 +08:00
9 changed files with 177 additions and 132 deletions

View File

@ -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));