diff --git a/config/config.dev.ts b/config/config.dev.ts index 924ef430..ab0e590f 100644 --- a/config/config.dev.ts +++ b/config/config.dev.ts @@ -12,5 +12,4 @@ export default defineConfig({ babelPlugins: [], babelOptions: {}, }, - webpack5: {}, }); diff --git a/config/config.ts b/config/config.ts index 249f02c0..698eaa6d 100644 --- a/config/config.ts +++ b/config/config.ts @@ -43,4 +43,5 @@ export default defineConfig({ // 快速刷新功能 https://umijs.org/config#fastrefresh fastRefresh: {}, esbuild: {}, + webpack5: {}, }); diff --git a/src/components/GlobalHeader/AvatarDropdown.tsx b/src/components/GlobalHeader/AvatarDropdown.tsx index cf39ae2c..f86b2c9d 100644 --- a/src/components/GlobalHeader/AvatarDropdown.tsx +++ b/src/components/GlobalHeader/AvatarDropdown.tsx @@ -14,12 +14,7 @@ export type GlobalHeaderRightProps = { } & Partial; class AvatarDropdown extends React.Component { - onMenuClick = (event: { - key: React.Key; - keyPath: React.Key[]; - item: React.ReactInstance; - domEvent: React.MouseEvent; - }) => { + onMenuClick = (event: { key: React.Key; keyPath: React.Key[]; item: React.ReactInstance }) => { const { key } = event; if (key === 'logout') {