😎修复子菜单颜色

This commit is contained in:
zuohuaijun 2024-06-16 14:19:53 +08:00
parent d8f89b494b
commit a1b4f39119

View File

@ -10,8 +10,10 @@
<template v-else>
<el-menu-item :index="val.path" :key="val.path">
<template v-if="!val.meta.isLink || (val.meta.isLink && val.meta.isIframe)">
<SvgIcon :name="val.meta.icon" />
<span>{{ $t(val.meta.title) }}</span>
<div class="theme">
<SvgIcon :name="val.meta.icon" />
<span>{{ $t(val.meta.title) }}</span>
</div>
</template>
<template v-else>
<a class="w100" @click.prevent="onALinkClick(val)">
@ -47,3 +49,9 @@ const onALinkClick = (val: RouteItem) => {
other.handleOpenLink(val);
};
</script>
<style lang="scss" scoped>
.theme {
color: var(--next-bg-menuBarColor);
}
</style>