Browse Source

默认打开注册页面

dengdx 2 months ago
parent
commit
240eaf8fdb
1 changed files with 1 additions and 1 deletions
  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 />,