mounted(){ this.ticketArr=[ { name:'大师傅', isshow:false }, { name:'的风格', isshow:false } ] if(this.ticketArr.findIndex(target=>target.isshow===true)==-1){ console.log('验证通过') }else { console.log('验证不通过') } }
mounted(){ this.ticketArr=[ { name:'大师傅', isshow:false }, { name:'的风格', isshow:false } ] if(this.ticketArr.findIndex(target=>target.isshow===true)==-1){ console.log('验证通过') }else { console.log('验证不通过') } }