ant design pro<Tabs>切换时可以重新请求

发布时间 2023-07-31 17:43:24作者: 無玑小姐

参考:https://blog.csdn.net/weixin_43915401/article/details/130953169

需求:每次切换tab标签都重新发送请求

解决方法:destroyInactiveTabPane属性:whether destroy inactive TabPane when change tab,切换tab时,销毁tabPane

<Tabs destroyInactiveTabPane>

这个属性,官方文档里没有,需要切换到英文,进入gitHub文档里才有