let timer = null;setInterval(() => {let date = new Date();let hours = date.getHours();if (hours < 1 || hours > 7) { // 1-8点不更新if(timer == null){timer = setInterval(()=>{this.$store.dispatch('GetUnreadMessageCount') // 每隔10分钟更新TOKEN}, 10 * 60 * 1000)}} else {clearInterval(timer);timer = null;}}, 15 * 60 * 1000)