update:add ci cd files ==> do not edit those file
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
export default {
|
||||
mounted() {
|
||||
this.checkMessages()
|
||||
},
|
||||
methods: {
|
||||
checkMessages() {
|
||||
if (this.$auth.loggedIn) {
|
||||
this.$axios.get('/api/admin/contactUsMessages')
|
||||
.then(res => {
|
||||
let unreadCount = res.data.filter(item => !item.read)
|
||||
this.$store.commit('admin/set', ['unreadMessagesCount', unreadCount.length])
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user