Browse Source
fix: type warning. (#1994)
Co-authored-by: 舒培培 <622292@ky-tech.com.cn>
pull/2000/head
cn.shperry
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
src/layouts/default/header/components/user-dropdown/index.vue
|
|
|
@ -37,6 +37,7 @@ |
|
|
|
<script lang="ts"> |
|
|
|
// components |
|
|
|
import { Dropdown, Menu } from 'ant-design-vue'; |
|
|
|
import type { MenuInfo } from 'ant-design-vue/lib/menu/src/interface'; |
|
|
|
|
|
|
|
import { defineComponent, computed } from 'vue'; |
|
|
|
|
|
|
|
@ -95,8 +96,8 @@ |
|
|
|
openWindow(DOC_URL); |
|
|
|
} |
|
|
|
|
|
|
|
function handleMenuClick(e: { key: MenuEvent }) { |
|
|
|
switch (e.key) { |
|
|
|
function handleMenuClick(e: MenuInfo) { |
|
|
|
switch (e.key as MenuEvent) { |
|
|
|
case 'logout': |
|
|
|
handleLoginOut(); |
|
|
|
break; |
|
|
|
|