0
点赞
收藏
分享

微信扫一扫

避免重复请求:接口重试机制最佳实践

套娃路由

routes:
        [
            {
                path: '/login',
                component: Login
            },
            {
                path: '/user',
                component: User,
                children:
                    [
                        { path: 'test', component: Test },
                        { path: 'test2', component: Test2 },
                    ]

            }

        ]

在父组件

 <router-link  to="user/test" >跳转用户</router-link>
 <router-view></router-view>
    <!-- 路由器占位符 -->
举报

相关推荐

0 条评论