feat(workspace): add debug clear button

This commit is contained in:
zhangchi committed 2022-07-25 14:31:45 +08:00
1 parent 95629486b3
commit 92e195446a
4 files changed
+23 -1

No files matched your search

@@ -40,3 +40,12 @@ export const exportMarkdown = async ({
const htmlContent = await clipboardParse.page2html();
fileExporter.exportMarkdown(title, htmlContent);
};
export const clearWorkspace = async ({
workspaceId,
rootBlockId,
title,
}: ExportHandlerProps) => {
//@ts-ignore
client.inspector().clear();
};