|
@@ -2,6 +2,7 @@ import type { Settings as LayoutSettings } from '@ant-design/pro-layout'
|
|
import { notification } from 'antd'
|
|
import { notification } from 'antd'
|
|
import { PageLoading } from '@ant-design/pro-layout'
|
|
import { PageLoading } from '@ant-design/pro-layout'
|
|
import type { RequestConfig, RunTimeLayoutConfig } from 'umi'
|
|
import type { RequestConfig, RunTimeLayoutConfig } from 'umi'
|
|
|
|
+import { Link } from 'umi'
|
|
import { getIntl, getLocale, history } from 'umi'
|
|
import { getIntl, getLocale, history } from 'umi'
|
|
import type { RequestOptionsInit, ResponseError } from 'umi-request'
|
|
import type { RequestOptionsInit, ResponseError } from 'umi-request'
|
|
import RightContent from '@/components/RightContent'
|
|
import RightContent from '@/components/RightContent'
|
|
@@ -182,6 +183,12 @@ export const layout: RunTimeLayoutConfig = ({ initialState }) => {
|
|
// }
|
|
// }
|
|
},
|
|
},
|
|
menuHeaderRender: undefined,
|
|
menuHeaderRender: undefined,
|
|
|
|
+ itemRender: (route, _, routes) => {
|
|
|
|
+ if (routes.indexOf(route) === routes.length - 1) {
|
|
|
|
+ return <span>{route.breadcrumbName}</span>
|
|
|
|
+ }
|
|
|
|
+ return <Link to={route.path}>{route.breadcrumbName}</Link>
|
|
|
|
+ },
|
|
// 自定义 403 页面
|
|
// 自定义 403 页面
|
|
// unAccessible: <div>unAccessible</div>,
|
|
// unAccessible: <div>unAccessible</div>,
|
|
...initialState?.settings
|
|
...initialState?.settings
|