feat: make tocs magement default

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