子路由path路径带 ‘/‘与不带

子路由不带 / : $router.push('/layout/home') 浏览器地址栏显示: http:xxxxxxxxxx/layout/home

带 / : $router.push('/user') 浏览器地址栏显示: http:xxxxxxxxxx/user .

posted on 2023-03-02 08:10  Steven_YF  阅读(270)  评论(0编辑  收藏  举报