After the Vue single file component data is changed, the page display does not follow the change.

Code and effect address

brief description of the problem. When you drag the mouse to select a cell, the data of component has changed, but the page display will have to wait until after mouseup, and if the status of k is not displayed on the page, the page will not even change after mouseup

Mar.19,2021

vm.tds[i][j][2] = "red";// 

use vm.$set

Menu