定义了映射理由
router.map({
'/router-new/:classId/': { component: rountNew,name:'router-new',},
'/router-video/:classId': { component: rountVideo ,name:'router-video', },
'/router-know/:classId': { component: rountKnow,name:'router-know', },
'/router-zixun/:classId': { component: rountZixun,name:'router-zixun', },
'/router-common/:classId': { component: rountCommon,name:'router-common', },
'/router-video-class/:classId': { component: rountVideoClass, name:'router-video-class', },
'/router-recommend/:classId': { component: rountRecommend, name:'router-recommend' },
});
在定义默认路径的时候怎么写都不对
router.redirect({
'/': '/router-new/',
})
这里应该怎么写才能匹配到定义的路由里面