Closed uier closed 1 year ago
The component AnnouncementCard.vue expect to receive announcement in props, however, post was passing in in edit.vue
AnnouncementCard.vue
announcement
post
edit.vue
https://github.com/Normal-OJ/new-front-end/blob/9d974d8fd24c55946ff7d3b4b64733dbf3ea5cd1/src/components/Announcement/AnnouncementCard.vue#L1-L13
https://github.com/Normal-OJ/new-front-end/blob/9d974d8fd24c55946ff7d3b4b64733dbf3ea5cd1/src/pages/course/%5Bname%5D/announcements/%5Bid%5D/edit.vue#L129-L133
Does this issue be possible to be raised beforehand by TS or ESLint?
The component
AnnouncementCard.vue
expect to receiveannouncement
in props, however,post
was passing in inedit.vue
https://github.com/Normal-OJ/new-front-end/blob/9d974d8fd24c55946ff7d3b4b64733dbf3ea5cd1/src/components/Announcement/AnnouncementCard.vue#L1-L13
https://github.com/Normal-OJ/new-front-end/blob/9d974d8fd24c55946ff7d3b4b64733dbf3ea5cd1/src/pages/course/%5Bname%5D/announcements/%5Bid%5D/edit.vue#L129-L133
Does this issue be possible to be raised beforehand by TS or ESLint?