[Vuejs]-Vue updating components at the same time after push

0👍

Well in case someone have the same issue, I sort it out like this:

copy(index) {
    var object = this.options[index]
    var newObject = {}
    for (const property in object) {
        newObject[property] = object[property]
    }
    this.options.push(newObject)
}

Leave a comment