Skip to content

Commit

Permalink
feat:根据适用习惯调整菜单顺序
Browse files Browse the repository at this point in the history
Change-Id: I6b6d7fcde8e1cec5dd15909e09e2b71f834cad14
  • Loading branch information
Shimmernight committed Jul 1, 2024
1 parent fad0a84 commit 273fe43
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions modules/team/Team/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,20 @@ export const TeamHome = observer(function TeamHome(props: TeamHomeProps) {
size="small"
className="u-pointer"
onClick={() => {
router.push(`/team/${teamId}/domain`);
router.push(`/team/${teamId}/scenario`);
}}
>
<Statistic value={model?.domainList.length ?? 0} title="业务域"></Statistic>
<Statistic value={model?.scenarioList.length ?? 0} title="业务场景"></Statistic>
</Card>
<Card
bordered
size="small"
className="u-pointer"
onClick={() => {
router.push(`/team/${teamId}/scenario`);
router.push(`/team/${teamId}/domain`);
}}
>
<Statistic value={model?.scenarioList.length ?? 0} title="业务场景"></Statistic>
<Statistic value={model?.domainList.length ?? 0} title="业务域"></Statistic>
</Card>
<Card
bordered
Expand Down
20 changes: 10 additions & 10 deletions modules/team/TeamLayout/TeamLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,29 +71,29 @@ export const TeamLayout = observer(function TeamLayout(props: TeamLayoutProps) {
name: '统一语言',
route: `/team/${teamId}/ubiquitous-language`,
children: [
{
name: '组织',
route: `/team/${teamId}/ubiquitous-language/organization`,
},
{
name: '团队',
route: `/team/${teamId}/ubiquitous-language`,
exact: true,
},
{
name: '组织',
route: `/team/${teamId}/ubiquitous-language/organization`,
},
],
},
{
icon: <DomainIcon />,
name: '业务域',
route: `/team/${teamId}/domain`,
children: model?.domainListMenu,
},
{
icon: <FlowIcon />,
name: '业务场景',
route: `/team/${teamId}/scenario`,
children: model?.scenarioListMenu,
},
{
icon: <DomainIcon />,
name: '业务域',
route: `/team/${teamId}/domain`,
children: model?.domainListMenu,
},
{ icon: <AppIcon />, name: '应用', route: `/team/${teamId}/app`, children: model?.appListMenu },
]}
actions={actions}
Expand Down

0 comments on commit 273fe43

Please sign in to comment.