浏览代码

默认打开注册页面

dengdx 4 月之前
父节点
当前提交
240eaf8fdb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/layouts/BasicLayout.tsx

+ 1 - 1
src/layouts/BasicLayout.tsx

@@ -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 />,