消息列表优化

This commit is contained in:
仲么了
2023-11-03 16:33:16 +08:00
parent f01f764fcf
commit bb95331392
32 changed files with 402 additions and 949 deletions

View File

@@ -142,9 +142,6 @@ export default {
},
onLoad(options) {
this.init()
setInterval(() => {
this.messageCount = uni.getStorageSync(this.$cacheKey.messageCount) || {}
}, 3000) // 定时请求
},
methods: {
init() {},
@@ -251,7 +248,7 @@ export default {
this.messageCount = uni.getStorageSync(this.$cacheKey.messageCount) || {}
this.timer = setInterval(() => {
this.messageCount = uni.getStorageSync(this.$cacheKey.messageCount) || {}
}, 3000) // 定时请求
}, 1000) // 定时请求
},
onHide() {
clearInterval(this.timer)