Skip to content

Commit

Permalink
路由和页面修改:移动数据模型路由并更新数据库配置页面
Browse files Browse the repository at this point in the history
- 移动数据模型路由:在路由配置中,数据模型路由已从独立位置移动到与项目路由并列的位置。
- 数据模型页面未更改,但其路由现在直接位于项目路由之后。
- 更新数据库配置页面:修改数据库配置页面的返回逻辑,移除直接返回首页的按钮,改为更合适的返回动作。
- 这些更改重新组织了应用程序的导航结构,使数据模型和数据库配置页面的访问更加直观。
  • Loading branch information
www.zerocode.net.cn committed Sep 17, 2024
1 parent d5efadc commit f038838
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
29 changes: 18 additions & 11 deletions config/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,7 @@
},
],
},
{
path: '/dataModels',
component: '../layouts/HomeLayout',
routes: [
{
path: '/dataModels',
component: './dataModels',
},
]
},

{
path: '/project',
component: '../layouts/HomeLayout',
Expand Down Expand Up @@ -199,9 +190,25 @@
path: '/',
redirect: '/project/home',
},
{
path: '/dataModels',
component: '../layouts/HomeLayout',
routes: [
{
path: '/dataModels',
component: './dataModels',
},
]
},
{
path: '/database-config',
component: './database-config',
component: '../layouts/HomeLayout',
routes: [
{
path: '/database-config',
component: './database-config',
},
]
},
{
name: 'account',
Expand Down
3 changes: 0 additions & 3 deletions src/pages/database-config/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,6 @@ const DatabaseConfigPage: React.FC = () => {
<PageContainer
title={
<Space>
<Button icon={<ArrowLeftOutlined />} onClick={() => history.push('/')}>
返回首页
</Button>
数据库连接管理
</Space>
}
Expand Down

0 comments on commit f038838

Please sign in to comment.