[Vuejs]-Vue 2 / Nuxt 2 Emit From Axios With Dialog Confirm

0👍

The this keyword refers to the object the function belongs to, or the window object if the function belongs to no object.

Try to use .bind and use a ES5 function

removeUser() {
  this.$buefy.dialog.confirm({
    message: 'Continue on this task?',
    onConfirm: function() {
      this.removeUserFunc()
    }.bind(this)
  })
},

Leave a comment