fix: type warning. (#1994)

Co-authored-by: 舒培培 <622292@ky-tech.com.cn>
This commit is contained in:
cn.shperry 2022-06-24 04:37:21 +08:00 committed by GitHub
parent 06236c9fe0
commit da8e0bdf91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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;