mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2026-01-22 23:50:22 +08:00
style: 修改菜单选中样式
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user