[Vuejs]-Error with computer Function in Vuejs / Laravel

1👍

You need to convert taxamount & amount from String to Number first then do addition.

Change to: var t = +taxamount + +amount;

total: function () {
   var amount= this.rinvoices.amount;
   var tax= this.rinvoices.tva;
   var taxamount= amount*tax;
   var t = +taxamount + +amount;
   return t;
}

Leave a comment