From f03883894b66e80bb15208244421e535d23f1b23 Mon Sep 17 00:00:00 2001 From: "www.zerocode.net.cn" Date: Tue, 17 Sep 2024 09:12:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E5=92=8C=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E7=A7=BB=E5=8A=A8=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E8=B7=AF=E7=94=B1=E5=B9=B6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E9=85=8D=E7=BD=AE=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移动数据模型路由:在路由配置中,数据模型路由已从独立位置移动到与项目路由并列的位置。 - 数据模型页面未更改,但其路由现在直接位于项目路由之后。 - 更新数据库配置页面:修改数据库配置页面的返回逻辑,移除直接返回首页的按钮,改为更合适的返回动作。 - 这些更改重新组织了应用程序的导航结构,使数据模型和数据库配置页面的访问更加直观。 --- config/routes.ts | 29 ++++++++++++++++++----------- src/pages/database-config/index.tsx | 3 --- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/config/routes.ts b/config/routes.ts index a55b15c..1c75fcb 100644 --- a/config/routes.ts +++ b/config/routes.ts @@ -31,16 +31,7 @@ }, ], }, - { - path: '/dataModels', - component: '../layouts/HomeLayout', - routes: [ - { - path: '/dataModels', - component: './dataModels', - }, - ] - }, + { path: '/project', component: '../layouts/HomeLayout', @@ -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', diff --git a/src/pages/database-config/index.tsx b/src/pages/database-config/index.tsx index a94bdc0..b4e5e6b 100644 --- a/src/pages/database-config/index.tsx +++ b/src/pages/database-config/index.tsx @@ -225,9 +225,6 @@ const DatabaseConfigPage: React.FC = () => { - 数据库连接管理 }