fix: type error

This commit is contained in:
wxg0103 2025-02-06 12:18:03 +08:00
parent 1234096678
commit 4ddc491224
2 changed files with 2 additions and 4 deletions

View File

@ -29,7 +29,7 @@
>
<template #title>
<AppIcon v-if="menu.meta && menu.meta.icon" :iconName="menuIcon" class="sidebar-icon" />
<span v-if="menu.meta && menu.meta.title">{{ $t(menu.meta.title) }}</span>
<span v-if="menu.meta && menu.meta.title">{{ $t(menu.meta?.title as string) }}</span>
</template>
</el-menu-item>
</div>
@ -50,8 +50,6 @@ const {
params: { id, type }
} = route as any
function showMenu() {
if (isWorkFlow(type)) {
return props.menu.name !== 'AppHitTest'

View File

@ -8,7 +8,7 @@
<AppIcon :iconName="menu.meta ? (menu.meta.icon as string) : '404'" />
</div> -->
<div class="title">
{{ $t(menu.meta?.title) }}
{{ $t(menu.meta?.title as string) }}
</div>
</div>
</template>