The problem that the Table component data of iview UI is refreshed but the page is not refreshed

Modify the number of input boxes in the table, after saving successfully. When the echo is turned on again, the quantity is displayed as 1.

The data is updated, but the page is not updated, adding this.$forceUpdate() is also invalid. .

 The solution is to bind a Key attribute to the Table component: key="Math.random()" and it will take effect.

<Table :key="Math.random()" border height="450" ref="selection" @on-selection-change="selectionChanged" :columns="card" :data="cardList" ></Table>

 

Guess you like

Origin blog.csdn.net/qq_29483485/article/details/127891503