1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2026-01-22 15:40:21 +08:00

style: 修改菜单选中样式

This commit is contained in:
zclzone
2024-04-03 17:58:41 +08:00
parent e135be93af
commit 9615ec9aa8
3 changed files with 15 additions and 12 deletions

View File

@@ -34,7 +34,7 @@ export const usePermissionStore = defineStore('permission', {
key: route.name,
path: route.path,
originPath: route.meta.originPath,
icon: () => h('i', { class: `${route.meta.icon} text-16` }),
icon: () => h('i', { class: `${route.meta.icon} text-14` }),
order: item.order ?? 0,
}
const children = item.children?.filter((item) => item.type === 'MENU') || []
@@ -61,7 +61,7 @@ export const usePermissionStore = defineStore('permission', {
component: item.component,
meta: {
originPath,
icon: item.icon + ({ bg: '', mask: '?mask' }[item.iconMode] ?? '?mask'),
icon: item.icon + '?mask',
title: item.name,
layout: item.layout,
keepAlive: !!item.keepAlive,