我这里是因为我代码中的方法不存在,我漏写了,后补充上就好了
在methods中添加如下代码:
// 修改登录状态 changeLoginType(bool){ this.loginType = bool }