The vue array element (data) changes and does not follow the new (view) solution

Due to JavaScript limitations, Vue cannot detect the following changing arrays:

  1. When you use the index to set an item directly, for example:vm.items[indexOfItem] = newValue
  2. When you modify the length of the array, for example:vm.items.length = newLength

Solution: https://blog.csdn.net/qq_38761664/article/details/78037831

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324551052&siteId=291194637