<Tabs defaultActiveKey="1" centered destroyInactiveTabPane><TabPane tab="页面1" key="1">内容1</TabPane><TabPane tab="页面2" key="2">内容2</TabPane><TabPane tab="页面3" key="3">内容3</TabPane></Tabs>
此处在使用时,每个tab设置了不同的背景色,不添加destroyInactiveTabPane时,背景色会遗留,从页面2切到页面1,带的是页面2的背景色,添加此属性解决