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

解决方案

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

image

posted @ 2021-12-29 13:20  胸怀丶若谷  阅读(13784)  评论(0编辑  收藏  举报