vue 路由匹配

  {
            path: '/:url([a-zA-Z0-9]{1,15}[^index])',
            component: () =>
            import ('@/view/apphref'),
            caseSensitive:true
  }
[a-zA-Z0-9]{1,15}为正则表达式
[^index] 过滤路由
    
 
 
 
原文地址:https://www.cnblogs.com/geekjsp/p/13036744.html