computed: {
msgs_id() {
return this.$store?.state?.get_dir[`${this.$route.params.id}`]['id']
}
},
async asyncData({ $axios }) {
try {
const direct = await $axios.$get(`/chat/messages/40`)
return { direct }
} catch (error) {
console.log(error)
}
}
When I type the id 40 manually it returns data, but when I return it from the computed it does not return data