|
|
@@ -1,6 +1,5 @@
|
|
|
import { LogoutOutlined, SettingOutlined, UserOutlined } from '@ant-design/icons';
|
|
|
import { Avatar, Menu, Spin } from 'antd';
|
|
|
-import { ClickParam } from 'antd/es/menu';
|
|
|
import React from 'react';
|
|
|
import { history, ConnectProps, connect } from 'umi';
|
|
|
import { ConnectState } from '@/models/connect';
|
|
|
@@ -14,7 +13,12 @@ export interface GlobalHeaderRightProps extends Partial<ConnectProps> {
|
|
|
}
|
|
|
|
|
|
class AvatarDropdown extends React.Component<GlobalHeaderRightProps> {
|
|
|
- onMenuClick = (event: ClickParam) => {
|
|
|
+ onMenuClick = (event: {
|
|
|
+ key: React.Key;
|
|
|
+ keyPath: React.Key[];
|
|
|
+ item: React.ReactInstance;
|
|
|
+ domEvent: React.MouseEvent<HTMLElement>;
|
|
|
+ }) => {
|
|
|
const { key } = event;
|
|
|
|
|
|
if (key === 'logout') {
|