Vue报错: Property or method "changeLoginType" is not defined on the instance but referenced during render

原因

我这里是因为我代码中的方法不存在,我漏写了,后补充上就好了

image

解决方案

在methods中添加如下代码:

// 修改登录状态
changeLoginType(bool){
   this.loginType = bool
}
博观而约取,厚积而薄发
原文地址:https://www.cnblogs.com/leoych/p/15376725.html