@@ -41,7 +41,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = () => {
heatCapacity: 0,
};
//使用key state更新整个basic layout ,用于加载新的内容组件
- const [currentKey, setCurrentKey] = useState('home');
+ const [currentKey, setCurrentKey] = useState('register');
// key和内容组件的映射
const contentMap = {
sub2: <AboutPage />,