feat: make tocs magement default

This commit is contained in:
fantasticit 2022-05-10 11:44:50 +08:00
parent f2bb4cd2ab
commit f819b61f03
1 changed files with 4 additions and 4 deletions

View File

@ -64,7 +64,7 @@ const AllDocs = ({ wikiId }) => {
const Page: NextPage<IProps> = ({ wikiId }) => { const Page: NextPage<IProps> = ({ wikiId }) => {
const { query = {} } = useRouter(); const { query = {} } = useRouter();
const { tab = 'documents' } = query as { const { tab = 'tocs' } = query as {
tab?: string; tab?: string;
}; };
@ -88,12 +88,12 @@ const Page: NextPage<IProps> = ({ wikiId }) => {
</Title> </Title>
<Tabs type="button" activeKey={tab} onChange={(tab) => navigate(tab)}> <Tabs type="button" activeKey={tab} onChange={(tab) => navigate(tab)}>
<TabPane tab="全部文档" itemKey="documents">
<AllDocs wikiId={wikiId} />
</TabPane>
<TabPane tab="目录管理" itemKey="tocs"> <TabPane tab="目录管理" itemKey="tocs">
<WikiTocsManager wikiId={wikiId} /> <WikiTocsManager wikiId={wikiId} />
</TabPane> </TabPane>
<TabPane tab="全部文档" itemKey="documents">
<AllDocs wikiId={wikiId} />
</TabPane>
</Tabs> </Tabs>
</div> </div>
} }