Skip to content

Commit

Permalink
trying fix coment post
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrolopeshlsSENAI committed Oct 13, 2020
1 parent fb85d13 commit 13ceb2b
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/components/cpmCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
</template>

<script>
import axios from 'axios';
import { mapActions, mapGetters } from 'vuex'
export default {
name: 'Card',
Expand Down Expand Up @@ -116,17 +117,23 @@ export default {
comment:this.newComent
}
let eventId = param.id
console.log(this.url + `/comment/${eventId}`, body)
this.$http.post(this.url + `/comment/${eventId}`, body).then(resp => {
console.log(resp)
})
// this.$http.post(this.url + `/comment/${eventId}`, body).then(resp => {
// console.log(resp)
// })
this.$http.post(this.uploadUrl + '/upload/image', fd)
axios.post(this.url + `/comment/${eventId}`, body)
.then(resp => {
console.log(resp)
this.eventForm.img = resp.data
})
.catch(err => {
this.$toast.error('Erro no registro!', 'Putz', {
position: "topCenter"
})
})
}
}
},
Expand Down

0 comments on commit 13ceb2b

Please sign in to comment.