| let { resultData } = data; | let { resultData } = data; | ||||
| this.myMsgList = resultData.list; | this.myMsgList = resultData.list; | ||||
| this.notRead = resultData.total - data.readCount; | this.notRead = resultData.total - data.readCount; | ||||
| this.notRead = this.notRead < 0 ? 0 : this.notRead; | |||||
| }else if(res.data.status == 102){ | }else if(res.data.status == 102){ | ||||
| this.$router.push('/login') | this.$router.push('/login') | ||||
| }else { | }else { |
| ); | ); | ||||
| this.queryParams.total = resultData.total; | this.queryParams.total = resultData.total; | ||||
| this.notRead = resultData.total - data.readCount; | this.notRead = resultData.total - data.readCount; | ||||
| this.notRead = this.notRead < 0 ? 0 : this.notRead; | |||||
| } else if (res.data.status == 102) { | } else if (res.data.status == 102) { | ||||
| this.$router.push("/login"); | this.$router.push("/login"); | ||||
| } else { | } else { |