[Vuejs]-The method works fine but get error in my Vue project

0👍

try this:

util.fillup_obj1_value_with_obj2_value = function(obj1, obj2) {

  for(let item in obj2) {
    obj1.hasOwnProperty(item) ? obj1[item] = obj2[item] : ''
  }
}

Leave a comment