Vue3+ElementPlus 根据路由 自动创建二级菜单

本文介绍了如何使用Vue3和ElementPlus框架根据路由信息动态创建二级菜单,详细展示了个人中心、我的钱包和内容创作等多个功能模块的菜单配置。
摘要由CSDN通过智能技术生成

name: ‘PersonalCenter’,

meta: {

isShow: true,

title: ‘个人中心’,

icon: ‘el-icon-s-custom’

},

component: Layout,

children:[

{

path: ‘/AccountSetting’,

name: ‘AccountSetting’,

meta: {

isShow: true,

title: ‘账户设置’,

icon: ‘el-icon-set-up’

},

component: () => import(‘…/views/Personal/AccountSetting.vue’)

},

{

path: ‘/Identification’,

name: ‘Identification’,

meta: {

isShow: true,

title: ‘信息认证’,

icon: ‘el-icon-s-check’

},

component: () => import(‘…/views/Personal/Identification.vue’)

},

{

path: ‘/MyCollect’,

name: ‘MyCollect’,

meta: {

isShow: true,

title: ‘我的收藏’,

icon: ‘el-icon-collection’

},

component: () => import(‘…/views/Personal/MyCollect.vue’)

},

{

path: ‘/PersonalInfo’,

name: ‘PersonalInfo’,

meta: {

isShow: true,

title: ‘个人资料’,

icon: ‘el-icon-info’

},

component: () => import(‘…/views/Personal/PersonalInfo.vue’)

},

{

path: ‘/PrivacySetting’,

name: ‘PrivacySetting’,

meta: {

isShow: true,

title: ‘隐私设置’,

icon: ‘el-icon-suitcase’

},

component: () => import(‘…/views/Personal/PrivacySetting.vue’)

}

]

},

{

path: ‘/WoDeWallet’,

name: ‘WoDeWallet’,

meta: {

isShow: true,

title: ‘我的钱包’,

icon: ‘el-icon-wallet’

},

component: Layout,

children:[

{

path: ‘/Balance’,

name: ‘Balance’,

meta: {

isShow: true,

title: ‘余额’,

icon: ‘el-icon-umbrella’

},

component: () => import(‘…/views/Wallet/Balance.vue’)

},

{

path: ‘/EarningsTiXian’,

name: ‘EarningsTiXian’,

meta: {

isShow: true,

title: ‘收益提现’,

icon: ‘el-icon-s-finance’

},

component: () => import(‘…/views/Wallet/EarningsTiXian.vue’)

},

{

path: ‘/Hcoin

  • 5
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值