hejianhao
2025-12-24 af995c4cbb22dafb1b5eec30b2f9a4eacdca81c5
feat(路由): 添加欢迎页面路由及相关组件

添加新的欢迎页面路由配置,创建欢迎页面组件及样式文件
修改登录成功后默认跳转路径至欢迎页面
2个文件已添加
2个文件已修改
37 ■■■■■ 已修改文件
management/config/routes.ts 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
management/src/pages/Login/index.tsx 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
management/src/pages/welco/index.jsx 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
management/src/pages/welco/index.less 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
management/config/routes.ts
@@ -13,6 +13,17 @@
export default [
  {
    path: '/Welcome',
    routes: [
      {
        name: 'Welcome',
        path: '/Welcome',
        hideInMenu: true,
        component: './welco',
      },
    ],
  },
  {
    "path": "/login",
    "layout": false,
    "routes": [
management/src/pages/Login/index.tsx
@@ -94,7 +94,7 @@
    message.success(defaultLoginSuccessMessage);
    const urlParams = new URL(window.location.href).searchParams;
    setTimeout(() => {
      history.push(urlParams.get('redirect') || '/');
      history.push(urlParams.get('redirect') || '/Welcome');
    }, 0);
  };
management/src/pages/welco/index.jsx
New file
@@ -0,0 +1,13 @@
import { PageContainer } from '@ant-design/pro-components';
import './index.less'
const SystemSettings = () => {
    return (
        <PageContainer title={' '} className={'weclome'}>
            <img src={require('../../../public/logo/welcome.png')} style={{ width: "100%", height: "calc(100vh - 120px)" }} />
        </PageContainer>
    )
}
export default SystemSettings
management/src/pages/welco/index.less
New file
@@ -0,0 +1,11 @@
.weclome{
    .ant-page-header {
        display: none;
    }
    .ant-pro-page-container-children-container {
       padding: unset !important;
    //    padding-left: 15px;
    //    padding-right: 15px;
    }
}