qq_43150474
qq_43150474
采纳率0%
2021-03-09 11:09

若依vue版本中,页面局部嵌套路由总是打开新的tab页,使用router-view不生效

index.js代码如下

 

 

{
  path: '/',
  component: Layout,
  alwaysShow: true,
  hidden: true,
  noCache: true,
  redirect: '/service/patientDataDetail',
  children: [
    {
      path: '/service/patientDataDetail',
      component: (resolve) => require(['@/views/service/patientDataDetail/index'], resolve),
      alwaysShow: true,
      noCache: true,
      redirect: '/service/patientDataDetail/qqq',
      name: 'Genr6Ed2it',
      meta: { title: '修改生成配r2置' },
      children: [
        {
          path: '/service/patientDataDetail/qqq',
          // alwaysShow: true,
          noCache: true,
          component: (resolve) => require(['@/views/service/patientDataDetail/ls/index'], resolve),
          name: 'Genr6Edff2it',
          meta: { title: '修改生成dd配r2置' }
        },
        {
          path: '/service/patientDataDetail/www',
          // alwaysShow: true,
          noCache: true,
          component: (resolve) => require(['@/views/service/patientDataDetail/ls/index2'], resolve),
          name: 'GenE7dhgh2it',
          meta: { title: '修改生8成配2置' }
        }
      ]
    }
  ]
}

点击  康复记录 时 局部跳转,父页面已配置router-view

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • weixin_38536847 weixin_38536847 1月前

    我也遇到了

    点赞 评论 复制链接分享
  • qq_41659519 qq_41659519 8天前

    直接在这个里面设置就可以了

    点赞 评论 复制链接分享

为你推荐