We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 995d2ab commit 02a704cCopy full SHA for 02a704c
litemall-admin/src/components/Notice/index.vue
@@ -17,7 +17,7 @@ export default {
17
}
18
},
19
mounted() {
20
- this.timer = setInterval(this.checkNotice, 10 * 1000)
+ this.timer = setInterval(this.checkNotice, 30 * 1000)
21
22
beforeDestroy() {
23
clearInterval(this.timer)
@@ -30,6 +30,9 @@ export default {
30
this.$router.push({ path: '/profile/notice' })
31
32
checkNotice() {
33
+ if (this.hasNotice) {
34
+ return
35
+ }
36
nNotice().then(response => {
37
this.hasNotice = response.data.data > 0
38
})
0 commit comments