This commit is contained in:
les 2021-03-05 14:20:32 +01:00
parent e4d43bd7a2
commit ea9e58be56

View file

@ -10,9 +10,6 @@ import { mapState } from 'vuex'
export default {
name: 'Announcement',
data () {
return { announcement: { title: '' } }
},
asyncData ({ $axios, params, error, store }) {
try {
const id = Number(params.id)
@ -22,6 +19,9 @@ export default {
error({ statusCode: 404, message: 'Announcement not found' })
}
},
data () {
return { announcement: { title: '' } }
},
computed: mapState(['announcements']),
methods: {
showResource (resource) {