Vue报错Uncaught TypeError: Cannot read property 'match' of undefined 在使用Vue做前端的时候遇到这个问题,百度无果,最后自己找到了问题,特此记录一下 原来是a标签没有设置href属性,加上href属性就好了