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