Vue错误:Cannot read properties of undefined (reading '$router')

解决方案

这是由于this的指向有问题,我们只需要重新声明一下this就可以重新调用了

image

博观而约取,厚积而薄发
原文地址:https://www.cnblogs.com/leoych/p/15744559.html