blog icon indicating copy to clipboard operation
blog copied to clipboard

v-router路由跳转

Open yongheng2016 opened this issue 8 years ago • 0 comments

在线上打包测试的时,当路由跳转时遇到了unexpect taken > 后查找原因是因为路由路径名引起的

路由1
path: '/test1'
路由2
path: '/test1/test2'
  • 但这两个路由路径不存在父子关系
  • 线下测试没问题
  • 线上通过webpack打包后,存在路由2页面进、出都报上面的错,
    • 后分析是因为webpack打包后,压缩过的js文件是通过参数名称(test,test2)来实现单页面跳转

yongheng2016 avatar Dec 05 '17 12:12 yongheng2016