antd Tabs切换时销毁tab,每次切换都重新加载
·
需求:业务逻辑要求每次切换tab的时候,发送请求。但是每个tab需要发送的请求都不一样,想了半天,只想到了切换tab的时候,重新加载tab内容吧。。
解决方法:destroyInactiveTabPane
属性:whether destroy inactive TabPane when change tab,切换tab时,销毁tabPane
<Tabs destroyInactiveTabPane>
这个属性,官方文档里没有,需要切换到英文,进入gitHub文档里才有
github地址
更多推荐
所有评论(0)