fix:【antd】【ele】activeMenu => activePath 解决激活菜单

This commit is contained in:
YunaiV
2025-09-21 21:59:01 +08:00
parent ca3fae4611
commit 38919dfc8e
7 changed files with 34 additions and 52 deletions

View File

@@ -17,7 +17,7 @@ const routes: RouteRecordRaw[] = [
name: 'DiyTemplateDecorate',
meta: {
title: '模板装修',
activeMenu: '/mall/promotion/diy-template/diy-template',
activePath: '/mall/promotion/diy-template/diy-template',
},
component: () =>
import('#/views/mall/promotion/diy/template/modules/decorate.vue'),
@@ -29,7 +29,7 @@ const routes: RouteRecordRaw[] = [
title: '页面装修',
noCache: false,
hidden: true,
activeMenu: '/mall/promotion/diy-template/diy-page',
activePath: '/mall/promotion/diy-template/diy-page',
},
component: () =>
import('#/views/mall/promotion/diy/page/modules/decorate.vue'),

View File

@@ -2,7 +2,7 @@ import type { RouteRecordRaw } from 'vue-router';
const routes: RouteRecordRaw[] = [
{
path: '/infra/job/job-log',
path: '/infra/job/log',
component: () => import('#/views/infra/job/logger/index.vue'),
name: 'InfraJobLog',
meta: {
@@ -14,25 +14,16 @@ const routes: RouteRecordRaw[] = [
},
},
{
path: '/codegen',
name: 'CodegenEdit',
path: '/infra/codegen/edit',
component: () => import('#/views/infra/codegen/edit/index.vue'),
name: 'InfraCodegenEdit',
meta: {
title: '代码生成',
title: '生成配置修改',
icon: 'ic:baseline-view-in-ar',
activePath: '/infra/codegen',
keepAlive: true,
hideInMenu: true,
},
children: [
{
path: '/codegen/edit',
name: 'InfraCodegenEdit',
component: () => import('#/views/infra/codegen/edit/index.vue'),
meta: {
title: '修改生成配置',
activeMenu: '/infra/codegen',
},
},
],
},
];

View File

@@ -16,7 +16,7 @@ const routes: RouteRecordRaw[] = [
name: 'ProductSpuAdd',
meta: {
title: '商品添加',
activeMenu: '/mall/product/spu',
activePath: '/mall/product/spu',
},
component: () => import('#/views/mall/product/spu/modules/form.vue'),
},
@@ -25,7 +25,7 @@ const routes: RouteRecordRaw[] = [
name: 'ProductSpuEdit',
meta: {
title: '商品编辑',
activeMenu: '/mall/product/spu',
activePath: '/mall/product/spu',
},
component: () => import('#/views/mall/product/spu/modules/form.vue'),
},
@@ -34,7 +34,7 @@ const routes: RouteRecordRaw[] = [
name: 'ProductSpuDetail',
meta: {
title: '商品详情',
activeMenu: '/crm/business',
activePath: '/crm/business',
},
component: () => import('#/views/mall/product/spu/modules/detail.vue'),
},
@@ -43,7 +43,7 @@ const routes: RouteRecordRaw[] = [
name: 'ProductSpu',
meta: {
title: '商品列表',
activeMenu: '/mall/product/spu',
activePath: '/mall/product/spu',
},
component: () => import('#/views/mall/product/spu/index.vue'),
},
@@ -64,7 +64,7 @@ const routes: RouteRecordRaw[] = [
name: 'TradeOrderDetail',
meta: {
title: '订单详情',
activeMenu: '/mall/trade/order',
activePath: '/mall/trade/order',
},
component: () => import('#/views/mall/trade/order/modules/detail.vue'),
},
@@ -73,7 +73,7 @@ const routes: RouteRecordRaw[] = [
name: 'TradeAfterSaleDetail',
meta: {
title: '退款详情',
activeMenu: '/mall/trade/after-sale',
activePath: '/mall/trade/after-sale',
},
component: () =>
import('#/views/mall/trade/afterSale/modules/detail.vue'),