iView UI --Table component data is refreshed but the page is not refreshed

Problem: The table selection box, after obtaining the data, selects individual selection boxes by default according to the needs, and the _checked value in the data printing fromConData is true, but the corresponding selection box is not checked on the page

Solution: Setting : key="Math.random() in the table can solve the problem of not refreshing

<Table :key="Math.random()" @on-selection-change="onSelectionChange" border :columns="fromConColumns" :data="fromConData"></Table>

 

Guess you like

Origin blog.csdn.net/weixin_43973909/article/details/129314882