🚨 修复 ts 构建报错.

This commit is contained in:
lijiahang
2024-07-26 10:56:36 +08:00
parent 7290b1364c
commit 29b44b8b77
28 changed files with 58 additions and 58 deletions

View File

@@ -13,7 +13,7 @@
<!-- 一级菜单 -->
<a-menu-item v-if="!menu.children?.length"
:key="menu.name"
@click="(e) => goto(e, menu)">
@click="(e: any) => goto(e, menu)">
<!-- 图标 -->
<template #icon>
<component v-if="menu.meta?.icon" :is="menu.meta?.icon" />
@@ -34,7 +34,7 @@
<!-- 子菜单 -->
<a-menu-item v-for="child in menu.children"
:key="child.name"
@click="(e) => goto(e, child)">
@click="(e: any) => goto(e, child)">
<!-- 图标 -->
<template #icon v-if="child.meta?.icon">
<component :is="child.meta?.icon" />