fix:【antd】【ele】activeMenu => activePath 解决激活菜单
This commit is contained in:
@@ -104,7 +104,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'BpmProcessInstanceReport',
|
name: 'BpmProcessInstanceReport',
|
||||||
meta: {
|
meta: {
|
||||||
title: '数据报表',
|
title: '数据报表',
|
||||||
activeMenu: '/bpm/manager/model',
|
activePath: '/bpm/manager/model',
|
||||||
icon: 'carbon:data-2',
|
icon: 'carbon:data-2',
|
||||||
hideInMenu: true,
|
hideInMenu: true,
|
||||||
keepAlive: true,
|
keepAlive: true,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'CrmClueDetail',
|
name: 'CrmClueDetail',
|
||||||
meta: {
|
meta: {
|
||||||
title: '线索详情',
|
title: '线索详情',
|
||||||
activeMenu: '/crm/clue',
|
activePath: '/crm/clue',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/crm/clue/modules/detail.vue'),
|
component: () => import('#/views/crm/clue/modules/detail.vue'),
|
||||||
},
|
},
|
||||||
@@ -25,7 +25,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'CrmCustomerDetail',
|
name: 'CrmCustomerDetail',
|
||||||
meta: {
|
meta: {
|
||||||
title: '客户详情',
|
title: '客户详情',
|
||||||
activeMenu: '/crm/customer',
|
activePath: '/crm/customer',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/crm/customer/modules/detail.vue'),
|
component: () => import('#/views/crm/customer/modules/detail.vue'),
|
||||||
},
|
},
|
||||||
@@ -34,7 +34,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'CrmBusinessDetail',
|
name: 'CrmBusinessDetail',
|
||||||
meta: {
|
meta: {
|
||||||
title: '商机详情',
|
title: '商机详情',
|
||||||
activeMenu: '/crm/business',
|
activePath: '/crm/business',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/crm/business/modules/detail.vue'),
|
component: () => import('#/views/crm/business/modules/detail.vue'),
|
||||||
},
|
},
|
||||||
@@ -43,7 +43,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'CrmContractDetail',
|
name: 'CrmContractDetail',
|
||||||
meta: {
|
meta: {
|
||||||
title: '合同详情',
|
title: '合同详情',
|
||||||
activeMenu: '/crm/contract',
|
activePath: '/crm/contract',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/crm/contract/modules/detail.vue'),
|
component: () => import('#/views/crm/contract/modules/detail.vue'),
|
||||||
},
|
},
|
||||||
@@ -52,7 +52,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'CrmReceivablePlanDetail',
|
name: 'CrmReceivablePlanDetail',
|
||||||
meta: {
|
meta: {
|
||||||
title: '回款计划详情',
|
title: '回款计划详情',
|
||||||
activeMenu: '/crm/receivable-plan',
|
activePath: '/crm/receivable-plan',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () =>
|
||||||
import('#/views/crm/receivable/plan/modules/detail.vue'),
|
import('#/views/crm/receivable/plan/modules/detail.vue'),
|
||||||
@@ -62,7 +62,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'CrmReceivableDetail',
|
name: 'CrmReceivableDetail',
|
||||||
meta: {
|
meta: {
|
||||||
title: '回款详情',
|
title: '回款详情',
|
||||||
activeMenu: '/crm/receivable',
|
activePath: '/crm/receivable',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/crm/receivable/modules/detail.vue'),
|
component: () => import('#/views/crm/receivable/modules/detail.vue'),
|
||||||
},
|
},
|
||||||
@@ -71,7 +71,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'CrmContactDetail',
|
name: 'CrmContactDetail',
|
||||||
meta: {
|
meta: {
|
||||||
title: '联系人详情',
|
title: '联系人详情',
|
||||||
activeMenu: '/crm/contact',
|
activePath: '/crm/contact',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/crm/contact/modules/detail.vue'),
|
component: () => import('#/views/crm/contact/modules/detail.vue'),
|
||||||
},
|
},
|
||||||
@@ -80,7 +80,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'CrmProductDetail',
|
name: 'CrmProductDetail',
|
||||||
meta: {
|
meta: {
|
||||||
title: '产品详情',
|
title: '产品详情',
|
||||||
activeMenu: '/crm/product',
|
activePath: '/crm/product',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/crm/product/modules/detail.vue'),
|
component: () => import('#/views/crm/product/modules/detail.vue'),
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import type { RouteRecordRaw } from 'vue-router';
|
|||||||
|
|
||||||
const routes: RouteRecordRaw[] = [
|
const routes: RouteRecordRaw[] = [
|
||||||
{
|
{
|
||||||
path: '/infra/job/job-log',
|
path: '/infra/job/log',
|
||||||
component: () => import('#/views/infra/job/logger/index.vue'),
|
component: () => import('#/views/infra/job/logger/index.vue'),
|
||||||
name: 'InfraJobLog',
|
name: 'InfraJobLog',
|
||||||
meta: {
|
meta: {
|
||||||
@@ -14,25 +14,16 @@ const routes: RouteRecordRaw[] = [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/codegen',
|
path: '/infra/codegen/edit',
|
||||||
name: 'CodegenEdit',
|
component: () => import('#/views/infra/codegen/edit/index.vue'),
|
||||||
|
name: 'InfraCodegenEdit',
|
||||||
meta: {
|
meta: {
|
||||||
title: '代码生成',
|
title: '生成配置修改',
|
||||||
icon: 'ic:baseline-view-in-ar',
|
icon: 'ic:baseline-view-in-ar',
|
||||||
|
activePath: '/infra/codegen',
|
||||||
keepAlive: true,
|
keepAlive: true,
|
||||||
hideInMenu: true,
|
hideInMenu: true,
|
||||||
},
|
},
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: '/codegen/edit',
|
|
||||||
name: 'InfraCodegenEdit',
|
|
||||||
component: () => import('#/views/infra/codegen/edit/index.vue'),
|
|
||||||
meta: {
|
|
||||||
title: '修改生成配置',
|
|
||||||
activeMenu: '/infra/codegen',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'ProductSpuAdd',
|
name: 'ProductSpuAdd',
|
||||||
meta: {
|
meta: {
|
||||||
title: '商品添加',
|
title: '商品添加',
|
||||||
activeMenu: '/mall/product/spu',
|
activePath: '/mall/product/spu',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/mall/product/spu/modules/form.vue'),
|
component: () => import('#/views/mall/product/spu/modules/form.vue'),
|
||||||
},
|
},
|
||||||
@@ -25,7 +25,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'ProductSpuEdit',
|
name: 'ProductSpuEdit',
|
||||||
meta: {
|
meta: {
|
||||||
title: '商品编辑',
|
title: '商品编辑',
|
||||||
activeMenu: '/mall/product/spu',
|
activePath: '/mall/product/spu',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/mall/product/spu/modules/form.vue'),
|
component: () => import('#/views/mall/product/spu/modules/form.vue'),
|
||||||
},
|
},
|
||||||
@@ -34,7 +34,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'ProductSpuDetail',
|
name: 'ProductSpuDetail',
|
||||||
meta: {
|
meta: {
|
||||||
title: '商品详情',
|
title: '商品详情',
|
||||||
activeMenu: '/crm/business',
|
activePath: '/crm/business',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/mall/product/spu/modules/detail.vue'),
|
component: () => import('#/views/mall/product/spu/modules/detail.vue'),
|
||||||
},
|
},
|
||||||
@@ -55,7 +55,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'TradeOrderDetail',
|
name: 'TradeOrderDetail',
|
||||||
meta: {
|
meta: {
|
||||||
title: '订单详情',
|
title: '订单详情',
|
||||||
activeMenu: '/mall/trade/order',
|
activePath: '/mall/trade/order',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/mall/trade/order/modules/detail.vue'),
|
component: () => import('#/views/mall/trade/order/modules/detail.vue'),
|
||||||
},
|
},
|
||||||
@@ -64,7 +64,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'TradeAfterSaleDetail',
|
name: 'TradeAfterSaleDetail',
|
||||||
meta: {
|
meta: {
|
||||||
title: '退款详情',
|
title: '退款详情',
|
||||||
activeMenu: '/mall/trade/after-sale',
|
activePath: '/mall/trade/after-sale',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () =>
|
||||||
import('#/views/mall/trade/afterSale/modules/detail.vue'),
|
import('#/views/mall/trade/afterSale/modules/detail.vue'),
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'DiyTemplateDecorate',
|
name: 'DiyTemplateDecorate',
|
||||||
meta: {
|
meta: {
|
||||||
title: '模板装修',
|
title: '模板装修',
|
||||||
activeMenu: '/mall/promotion/diy-template/diy-template',
|
activePath: '/mall/promotion/diy-template/diy-template',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () =>
|
||||||
import('#/views/mall/promotion/diy/template/modules/decorate.vue'),
|
import('#/views/mall/promotion/diy/template/modules/decorate.vue'),
|
||||||
@@ -29,7 +29,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
title: '页面装修',
|
title: '页面装修',
|
||||||
noCache: false,
|
noCache: false,
|
||||||
hidden: true,
|
hidden: true,
|
||||||
activeMenu: '/mall/promotion/diy-template/diy-page',
|
activePath: '/mall/promotion/diy-template/diy-page',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () =>
|
||||||
import('#/views/mall/promotion/diy/page/modules/decorate.vue'),
|
import('#/views/mall/promotion/diy/page/modules/decorate.vue'),
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import type { RouteRecordRaw } from 'vue-router';
|
|||||||
|
|
||||||
const routes: RouteRecordRaw[] = [
|
const routes: RouteRecordRaw[] = [
|
||||||
{
|
{
|
||||||
path: '/infra/job/job-log',
|
path: '/infra/job/log',
|
||||||
component: () => import('#/views/infra/job/logger/index.vue'),
|
component: () => import('#/views/infra/job/logger/index.vue'),
|
||||||
name: 'InfraJobLog',
|
name: 'InfraJobLog',
|
||||||
meta: {
|
meta: {
|
||||||
@@ -14,25 +14,16 @@ const routes: RouteRecordRaw[] = [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/codegen',
|
path: '/infra/codegen/edit',
|
||||||
name: 'CodegenEdit',
|
component: () => import('#/views/infra/codegen/edit/index.vue'),
|
||||||
|
name: 'InfraCodegenEdit',
|
||||||
meta: {
|
meta: {
|
||||||
title: '代码生成',
|
title: '生成配置修改',
|
||||||
icon: 'ic:baseline-view-in-ar',
|
icon: 'ic:baseline-view-in-ar',
|
||||||
|
activePath: '/infra/codegen',
|
||||||
keepAlive: true,
|
keepAlive: true,
|
||||||
hideInMenu: true,
|
hideInMenu: true,
|
||||||
},
|
},
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: '/codegen/edit',
|
|
||||||
name: 'InfraCodegenEdit',
|
|
||||||
component: () => import('#/views/infra/codegen/edit/index.vue'),
|
|
||||||
meta: {
|
|
||||||
title: '修改生成配置',
|
|
||||||
activeMenu: '/infra/codegen',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'ProductSpuAdd',
|
name: 'ProductSpuAdd',
|
||||||
meta: {
|
meta: {
|
||||||
title: '商品添加',
|
title: '商品添加',
|
||||||
activeMenu: '/mall/product/spu',
|
activePath: '/mall/product/spu',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/mall/product/spu/modules/form.vue'),
|
component: () => import('#/views/mall/product/spu/modules/form.vue'),
|
||||||
},
|
},
|
||||||
@@ -25,7 +25,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'ProductSpuEdit',
|
name: 'ProductSpuEdit',
|
||||||
meta: {
|
meta: {
|
||||||
title: '商品编辑',
|
title: '商品编辑',
|
||||||
activeMenu: '/mall/product/spu',
|
activePath: '/mall/product/spu',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/mall/product/spu/modules/form.vue'),
|
component: () => import('#/views/mall/product/spu/modules/form.vue'),
|
||||||
},
|
},
|
||||||
@@ -34,7 +34,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'ProductSpuDetail',
|
name: 'ProductSpuDetail',
|
||||||
meta: {
|
meta: {
|
||||||
title: '商品详情',
|
title: '商品详情',
|
||||||
activeMenu: '/crm/business',
|
activePath: '/crm/business',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/mall/product/spu/modules/detail.vue'),
|
component: () => import('#/views/mall/product/spu/modules/detail.vue'),
|
||||||
},
|
},
|
||||||
@@ -43,7 +43,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'ProductSpu',
|
name: 'ProductSpu',
|
||||||
meta: {
|
meta: {
|
||||||
title: '商品列表',
|
title: '商品列表',
|
||||||
activeMenu: '/mall/product/spu',
|
activePath: '/mall/product/spu',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/mall/product/spu/index.vue'),
|
component: () => import('#/views/mall/product/spu/index.vue'),
|
||||||
},
|
},
|
||||||
@@ -64,7 +64,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'TradeOrderDetail',
|
name: 'TradeOrderDetail',
|
||||||
meta: {
|
meta: {
|
||||||
title: '订单详情',
|
title: '订单详情',
|
||||||
activeMenu: '/mall/trade/order',
|
activePath: '/mall/trade/order',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/mall/trade/order/modules/detail.vue'),
|
component: () => import('#/views/mall/trade/order/modules/detail.vue'),
|
||||||
},
|
},
|
||||||
@@ -73,7 +73,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'TradeAfterSaleDetail',
|
name: 'TradeAfterSaleDetail',
|
||||||
meta: {
|
meta: {
|
||||||
title: '退款详情',
|
title: '退款详情',
|
||||||
activeMenu: '/mall/trade/after-sale',
|
activePath: '/mall/trade/after-sale',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () =>
|
||||||
import('#/views/mall/trade/afterSale/modules/detail.vue'),
|
import('#/views/mall/trade/afterSale/modules/detail.vue'),
|
||||||
|
|||||||
Reference in New Issue
Block a user