检查一下子路由的路径是否带了根路径'/'
比如

 children:[
        {
          path:"/modify/:id",
          name:"modifyAddress",
          props:true,
          component:ModifyDetail
        },{
          path:/"new",
          name:"addAddress",
          component:AddDetailContainer
        }
      ]

这样是进不去的,应该承接父路由不需要添加'/'

{
      path:"/addressDetail",
      name:"addressDetail",
      component:AddressDetailContainer,
      children:[
        {
          path:"modify/:id",
          name:"modifyAddress",
          props:true,
          component:ModifyDetail
        },{
          path:"new",
          name:"addAddress",
          component:AddDetailContainer
        }
      ]
    }
Logo

前往低代码交流专区

更多推荐