😎修复子菜单颜色
This commit is contained in:
parent
d8f89b494b
commit
a1b4f39119
@ -10,8 +10,10 @@
|
|||||||
<template v-else>
|
<template v-else>
|
||||||
<el-menu-item :index="val.path" :key="val.path">
|
<el-menu-item :index="val.path" :key="val.path">
|
||||||
<template v-if="!val.meta.isLink || (val.meta.isLink && val.meta.isIframe)">
|
<template v-if="!val.meta.isLink || (val.meta.isLink && val.meta.isIframe)">
|
||||||
<SvgIcon :name="val.meta.icon" />
|
<div class="theme">
|
||||||
<span>{{ $t(val.meta.title) }}</span>
|
<SvgIcon :name="val.meta.icon" />
|
||||||
|
<span>{{ $t(val.meta.title) }}</span>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<a class="w100" @click.prevent="onALinkClick(val)">
|
<a class="w100" @click.prevent="onALinkClick(val)">
|
||||||
@ -47,3 +49,9 @@ const onALinkClick = (val: RouteItem) => {
|
|||||||
other.handleOpenLink(val);
|
other.handleOpenLink(val);
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.theme {
|
||||||
|
color: var(--next-bg-menuBarColor);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user