(newMatch: MatchItem[])
| 31 | |
| 32 | // 自定义的状态更新函数,会在更新后自动刷新数据 |
| 33 | const updateMatchAndRefresh = (newMatch: MatchItem[]) => { |
| 34 | setMatch(newMatch); |
| 35 | refreshMatch(); |
| 36 | }; |
| 37 | |
| 38 | const updateExcludeAndRefresh = (newExclude: MatchItem[]) => { |
| 39 | setExclude(newExclude); |
no test coverage detected