From 9d0acfb65c80c4948c305ca01338f894b87346a0 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 08 四月 2024 09:44:37 +0800
Subject: [PATCH] Merge branch 'Four-Way-Rack' of http://47.97.1.152:5880/r/zy-asrs-master into Four-Way-Rack
---
zy-asrs-flow/src/components/RightContent/AvatarDropdown.jsx | 22 ++++++++--------------
1 files changed, 8 insertions(+), 14 deletions(-)
diff --git a/zy-asrs-flow/src/components/RightContent/AvatarDropdown.jsx b/zy-asrs-flow/src/components/RightContent/AvatarDropdown.jsx
index 6e4c9cb..fef5588 100644
--- a/zy-asrs-flow/src/components/RightContent/AvatarDropdown.jsx
+++ b/zy-asrs-flow/src/components/RightContent/AvatarDropdown.jsx
@@ -1,6 +1,6 @@
import { outLogin } from '@/services/ant-design-pro/api';
import { LogoutOutlined, SettingOutlined, UserOutlined } from '@ant-design/icons';
-import { history, useModel } from '@umijs/max';
+import { history, useModel, FormattedMessage, useIntl } from '@umijs/max';
import { Spin } from 'antd';
import { createStyles } from 'antd-style';
import { stringify } from 'querystring';
@@ -35,6 +35,7 @@
};
export const AvatarDropdown = ({ menu, children }) => {
+ const intl = useIntl();
const { styles } = useStyles();
const { initialState, setInitialState } = useModel('@@initialState');
@@ -67,10 +68,8 @@
loginOut();
return;
}
- history.push(`/account/${key}`);
- },
- [setInitialState],
- );
+ history.push(`/user/${key}`);
+ }, [setInitialState]);
const loading = (
<span className={styles.action}>
@@ -112,18 +111,13 @@
// },
// ]
// : []),
- {
- key: 'settings',
- icon: <SettingOutlined />,
- label: '涓汉璁剧疆',
- },
- {
- type: 'divider'
- },
+ // {
+ // type: 'divider'
+ // },
{
key: 'logout',
icon: <LogoutOutlined />,
- label: '閫�鍑虹櫥褰�',
+ label: intl.formatMessage({ id: 'common.account.logout', defaultMessage: '閫�鍑虹櫥褰�' }),
},
];
--
Gitblit v1.9.1