vue 路由嵌套 (子路由跳转报错或者失效解决方法)

注意:子路由path不要写 “/” 。写入 / 会跳不到或者报错。子路由component引入,先定义再引入,懒加载component: () => import('@/views/commodityManagement/goodsRule/index.vue'),会失效。

https://blog.csdn.net/weixin_45000761/article/details/110058403

posted @ 2021-09-28 10:41  ThisCall  阅读(685)  评论(0编辑  收藏  举报