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