如果使用queryParams,则不会将NbMenuItem应用于“活动”样式

问题描述

我通过json在星云中创建自定义菜单

我有这样的代码

    this.menu_materi = this.topikData.map(topik => {
      return {
        title: topik.name,icon: 'archive-outline',skipLocationChange: true,expanded:true,children: topik.lessons.map(lesson => {
          return {
            title: lesson.name,icon: (lesson.type == 'text') ? 'video-outline' : 'archive-outline',link: '/materi/materi-detail',pathMatch: 'prefix',queryParams: { materi: this.materiSlug,topic: topik.slug,type: lesson.type,lesson: lesson.code,slug: lesson.slug }
          }
        })
      }
    })

enter image description here

当我尝试导航时,菜单上没有活动项目,有人知道为什么吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)