diff --git a/config/config.ts b/config/config.ts
index 617a4ece..7850a0b7 100644
--- a/config/config.ts
+++ b/config/config.ts
@@ -68,6 +68,17 @@ export default defineConfig({
* @description 一个不错的热更新组件,更新时可以保留 state
*/
fastRefresh: true,
+ /**
+ * @name 路由预加载
+ * @description 预加载路由资源,提升页面切换速度
+ * @doc https://umijs.org/docs/api/config#routePrefetch
+ */
+ routePrefetch: {},
+ /**
+ * @name manifest 配置
+ * @description 生成资源清单,配合 routePrefetch 使用
+ */
+ manifest: {},
//============== 以下都是max的插件配置 ===============
/**
* @name 数据流插件
diff --git a/src/app.tsx b/src/app.tsx
index fbff83f3..335a4ba5 100644
--- a/src/app.tsx
+++ b/src/app.tsx
@@ -69,6 +69,16 @@ export const layout: RunTimeLayoutConfig = ({
,
,
],
+ menuItemRender: (item, dom) => {
+ if (item.path) {
+ return (
+
+ {dom}
+
+ );
+ }
+ return dom;
+ },
avatarProps: {
src: initialState?.currentUser?.avatar,
title: ,
diff --git a/src/pages/404.tsx b/src/pages/404.tsx
index 9734cc57..6d4dd981 100644
--- a/src/pages/404.tsx
+++ b/src/pages/404.tsx
@@ -1,4 +1,4 @@
-import { history, useIntl } from '@umijs/max';
+import { Link, useIntl } from '@umijs/max';
import { Button, Card, Result } from 'antd';
import React from 'react';
@@ -9,9 +9,11 @@ const NoFoundPage: React.FC = () => (
title="404"
subTitle={useIntl().formatMessage({ id: 'pages.404.subTitle' })}
extra={
-
+
+
+
}
/>
diff --git a/src/pages/dashboard/workplace/index.tsx b/src/pages/dashboard/workplace/index.tsx
index 23772a09..188b2f10 100644
--- a/src/pages/dashboard/workplace/index.tsx
+++ b/src/pages/dashboard/workplace/index.tsx
@@ -155,7 +155,11 @@ const Workplace: FC = () => {
}}
title="进行中的项目"
variant="borderless"
- extra={全部项目}
+ extra={
+
+ 全部项目
+
+ }
loading={projectLoading}
>
{projectNotice.map((item) => (
@@ -164,7 +168,9 @@ const Workplace: FC = () => {
title={
-
{item.title}
+
+ {item.title}
+
}
description={item.description}
@@ -173,7 +179,9 @@ const Workplace: FC = () => {
}}
/>
- {item.member || ''}
+
+ {item.member || ''}
+
{item.updatedAt && (
{dayjs(item.updatedAt).fromNow()}
diff --git a/src/pages/exception/403/index.tsx b/src/pages/exception/403/index.tsx
index b5397c0b..29911a46 100644
--- a/src/pages/exception/403/index.tsx
+++ b/src/pages/exception/403/index.tsx
@@ -8,7 +8,7 @@ export default () => (
title="403"
subTitle="Sorry, you are not authorized to access this page."
extra={
-
+
}
diff --git a/src/pages/exception/404/index.tsx b/src/pages/exception/404/index.tsx
index f2ae5149..a1bb7685 100644
--- a/src/pages/exception/404/index.tsx
+++ b/src/pages/exception/404/index.tsx
@@ -8,7 +8,7 @@ export default () => (
title="404"
subTitle="Sorry, the page you visited does not exist."
extra={
-
+
}
diff --git a/src/pages/exception/500/index.tsx b/src/pages/exception/500/index.tsx
index 55d69de5..38244070 100644
--- a/src/pages/exception/500/index.tsx
+++ b/src/pages/exception/500/index.tsx
@@ -8,7 +8,7 @@ export default () => (
title="500"
subTitle="Sorry, something went wrong."
extra={
-
+
}
diff --git a/src/pages/user/register-result/index.tsx b/src/pages/user/register-result/index.tsx
index 1a914e26..0960e920 100644
--- a/src/pages/user/register-result/index.tsx
+++ b/src/pages/user/register-result/index.tsx
@@ -14,7 +14,7 @@ const RegisterResult: React.FC> = () => {
查看邮箱
-
+
diff --git a/src/pages/user/register/index.tsx b/src/pages/user/register/index.tsx
index 72f909d1..7b354734 100644
--- a/src/pages/user/register/index.tsx
+++ b/src/pages/user/register/index.tsx
@@ -297,7 +297,7 @@ const Register: FC = () => {
>
注册
-
+
使用已有账户登录