fix: bdDoc

plp
xingyu4j 3 years ago
parent 7ff6db9ac7
commit 028810b201

@ -1,7 +1,37 @@
import { Layout } from '@/utils/routerHelper'
import { useI18n } from '@/hooks/web/useI18n'
const { t } = useI18n()
/**
* redirect: noredirect noredirect
* name:'router-name' 使<keep-alive>
* meta : {
hidden: true true 404login( false)
alwaysShow: true children 1
children
alwaysShow: true
( false)
title: 'title'
icon: 'svg-name'
noCache: true true <keep-alive> ( false)
breadcrumb: false falsebreadcrumb( true)
affix: true truetag( false)
noTagsView: true truetag( false)
activeMenu: '/dashboard'
followAuth: '/dashboard'
canTo: true true使hiddentrue( false)
}
**/
const remainingRouter: AppRouteRecordRaw[] = [
{
path: '/redirect',

@ -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')
}
}

Loading…
Cancel
Save