fix: bdDoc

This commit is contained in:
xingyu4j
2022-11-23 14:13:57 +08:00
parent 7ff6db9ac7
commit 028810b201
2 changed files with 33 additions and 1 deletions

View File

@ -44,14 +44,16 @@ const init = async () => {
}
/** 处理导出 */
const handleExport = async (type: string) => {
const res = await DbDocApi.exportHtmlApi()
if (type === 'HTML') {
const res = await DbDocApi.exportHtmlApi()
download.html(res, '数据库文档.html')
}
if (type === 'Word') {
const res = await DbDocApi.exportWordApi()
download.word(res, '数据库文档.doc')
}
if (type === 'Markdown') {
const res = await DbDocApi.exportMarkdownApi()
download.markdown(res, '数据库文档.md')
}
}