diff --git a/packages/client/src/components/document/reader/public/index.tsx b/packages/client/src/components/document/reader/public/index.tsx index 4dbfb14..f935bb7 100644 --- a/packages/client/src/components/document/reader/public/index.tsx +++ b/packages/client/src/components/document/reader/public/index.tsx @@ -1,5 +1,5 @@ import { Breadcrumb, Button, Form, Layout, Nav, Skeleton, Space, Tooltip, Typography } from '@douyinfe/semi-ui'; -import { IconExport, IconImport } from '@douyinfe/semi-icons'; +import { IconRoute } from '@douyinfe/semi-icons'; import { FormApi } from '@douyinfe/semi-ui/lib/es/form'; import { DataRender } from 'components/data-render'; import { Divider } from 'components/divider'; @@ -69,7 +69,7 @@ export const DocumentPublicReader: React.FC = ({ documentId, hideLogo = pathname: currentWikiId ? '/share/document/[documentId]' : '/share/wiki/[wikiId]/document/[documentId]', query: currentWikiId ? { documentId } : { wikiId: data.wikiId, documentId }, }); - }, [data, currentWikiId]); + }, [currentWikiId, documentId, data.wikiId]); const content = useMemo(() => { if (error) { @@ -128,7 +128,7 @@ export const DocumentPublicReader: React.FC = ({ documentId, hideLogo = )} ); - }, [error, data, mounted, editorWrapClassNames, fontSize]); + }, [error, data, mounted, documentId, renderAuthor, handleOk]); return ( @@ -148,25 +148,9 @@ export const DocumentPublicReader: React.FC = ({ documentId, hideLogo = } footer={ - {currentWikiId ? ( - -