The problem
El-table requests data from the back end, paging. When the el-table item is selected, the toggleRowSelection method is disabled. Statusarr.indexof (row) is used in the application component’s source code. When returning to the previously selected page, the interface requests the current page data again. IndexOf (row)===-1; therefore, toggleRowSelection does not toggle the selected items.
The solution
Can use this. $refs. Table. Selection. The find (e = > e.h Id = = = data. HId) to identify the row and then call toggleRowSelection (row)
Post the source code below