之前设置 * 在 cli4版本中设置报错 没有效果;

如下代码是设置有效:

 {

    path: '/:pathMatch(.*)',
  
    redirect: {
  
      name: 'vue404'
  
    }
  
  }

 

posted on 2020-08-28 15:00  刘世涛6192  阅读(1250)  评论(1编辑  收藏  举报