for (let i in _this.person.data) {
if (_this.person.data[i].classroom_id === _this.roomsId) {
_this.onLine = _this.person.data[i].online_user_count
_this.offLine = Number(_this.roomUsertData.length) - _this.person.data[i].online_user_count
for (let j in _this.roomUsertData) {
for (let o in _this.person.data[i].username) {
if (this.roomUsertData[j].username === _this.person.data[i].username[o]) {
_this.$set(_this.roomUsertData[j], 'status', true)
_this.roomUsertData[j].status = true
} else {
_this.$set(_this.roomUsertData[j], 'status', false)
_this.roomUsertData[j].status = false
}
}
}
}
}
如果第一个为true了,但是下一个为false或覆盖掉true,想让他为true的话,就循环下一个this.roomUsertData[j] ........
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…