mirror of https://github.com/fantasticit/think.git
feat: make tocs magement default
parent
f2bb4cd2ab
commit
f819b61f03
|
@ -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>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue