minor
This commit is contained in:
@@ -10,9 +10,6 @@ import { mapState } from 'vuex'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Announcement',
|
name: 'Announcement',
|
||||||
data () {
|
|
||||||
return { announcement: { title: '' } }
|
|
||||||
},
|
|
||||||
asyncData ({ $axios, params, error, store }) {
|
asyncData ({ $axios, params, error, store }) {
|
||||||
try {
|
try {
|
||||||
const id = Number(params.id)
|
const id = Number(params.id)
|
||||||
@@ -22,6 +19,9 @@ export default {
|
|||||||
error({ statusCode: 404, message: 'Announcement not found' })
|
error({ statusCode: 404, message: 'Announcement not found' })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
data () {
|
||||||
|
return { announcement: { title: '' } }
|
||||||
|
},
|
||||||
computed: mapState(['announcements']),
|
computed: mapState(['announcements']),
|
||||||
methods: {
|
methods: {
|
||||||
showResource (resource) {
|
showResource (resource) {
|
||||||
|
|||||||
Reference in New Issue
Block a user