diff --git a/README.md b/README.md index a2e6bee0..f06510f6 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,13 @@ mysql -u root -p; CREATE DATABASE `think` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; ``` +#### 可选:Redis + +``` +docker pull redis:latest +docker run --name think-redis -p 6379:6379 -d redis --appendonly yes --requirepass "root" +``` + ### 本地运行 首先,clone 项目。 diff --git a/packages/client/src/components/document/editor/index.tsx b/packages/client/src/components/document/editor/index.tsx index d824f95c..da1c6c5f 100644 --- a/packages/client/src/components/document/editor/index.tsx +++ b/packages/client/src/components/document/editor/index.tsx @@ -12,6 +12,7 @@ import { DocumentShare } from 'components/document/share'; import { DocumentStar } from 'components/document/star'; import { DocumentCollaboration } from 'components/document/collaboration'; import { DocumentStyle } from 'components/document/style'; +import { DocumentVersion } from 'components/document/version'; import { useDocumentStyle } from 'hooks/use-document-style'; import { EventEmitter } from 'helpers/event-emitter'; import { Editor } from './editor'; @@ -89,6 +90,7 @@ export const DocumentEditor: React.FC = ({ documentId }) => { )} + }> + toggleVisible(false)} + onCancel={() => toggleVisible(false)} + > + + +