Fetch real data from backend

This commit is contained in:
Tusooa Zhu 2022-03-17 14:01:45 -04:00 committed by tusooa
commit 95750509b1
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
6 changed files with 117 additions and 32 deletions

View file

@ -6,6 +6,16 @@ const Announcement = {
computed: {
content () {
return this.announcement.content
},
isRead () {
return this.announcement.read
}
},
methods: {
markAsRead () {
if (!this.isRead) {
return this.$store.dispatch('markAnnouncementAsRead', this.announcement.id)
}
}
}
}