[How to Fix] _this2.$xxxis not a function

Error: _this2. $xxxxxis not a function

 handleDelete: (api) => {
      this.$message("This is a message");
    },

Is amended as:

handleDelete: function () {
      this.$message("This is a message");
    },

Read More: