The question about which tabs is selected when ant design tabs returns

when using ant design"s tabs, as shown in the following figure, you can enter different details pages in both published and unpublished lists, but when you return, you always select the released tab, by default. I think if the unpublished details page comes back, the unreleased tab, is selected. I hope you can give me some suggestions. Thank you!

clipboard.png

Mar.15,2021

property of Tabs defaultActiveKey is set to a variable

Menu