10,606
社区成员
发帖
与我相关
我的任务
分享
switch(leftCont){
case "登录日志":
console.log(leftCont);
this.showLandingLog = true;
this.showChangPassword = false;
break;
case "修改密码":
this.showLandingLog = false;
this.showChangPassword = true;
break;
default:
console.log(leftCont);
break;
}
最后面加上default看看是没有进switch还是没有和case匹配上