I believe that many novices will encounter a problem. The backend returns the value to you and you get the rendering, but it can’t be modified, and $set can’t work. This problem is very distressing. Look at the code and find that there is no mistake. , why doesn't it work?
In fact, you didn’t declare it in the reunter. At this time, someone said yes. For example, if I want to make a list table, I have declared tableData. This is what I have two-way binding, but why it still doesn’t work? In fact, you didn’t declare it. , because what you want to modify is the property of an object in the tableData array. It is the reason why Vue2's support for Array is relatively weak.