访问嵌套路由报错 No match found for location with path
解决方法:子路由的path 不要斜杠/
path:’/keyBusinessIndex’ 改成 path:‘keyBusinessIndex’


 {
        path: '/keyBusiness', //关键业务
        component: keyBusiness,
        children: [
            {
                path:'/keyBusinessIndex',
                component:keyBusinessIndex,
                meta: {
                    title: '关键业务'
                },
            }
        ]
    },

改成

 {
        path: '/keyBusiness', //关键业务
        component: keyBusiness,
        children: [
            {
                path:'keyBusinessIndex',
                component:keyBusinessIndex,
                meta: {
                    title: '关键业务'
                },
            }
        ]
    },
Logo

基于 Vue 的企业级 UI 组件库和中后台系统解决方案,为数万开发者服务。

更多推荐