diff --git a/src/client/pages/announcements.vue b/src/client/pages/announcements.vue index 089475ed6..49841db8a 100644 --- a/src/client/pages/announcements.vue +++ b/src/client/pages/announcements.vue @@ -11,7 +11,7 @@
@@ -47,8 +47,13 @@ export default Vue.extend({ }, methods: { - read(announcement) { - announcement.isRead = true; + // TODO: これは実質的に親コンポーネントから子コンポーネントのプロパティを変更してるのでなんとかしたい + read(items, announcement, i) { + console.log(this); + Vue.set(items, i, { + ...announcement, + isRead: true, + }); this.$root.api('i/read-announcement', { announcementId: announcement.id }); }, }