fix: rap export

test
bigfengyu 5 years ago
parent fb0626cf13
commit e6f56e4771

@ -20,6 +20,7 @@ export default function ExportPostmanForm(props: {
title: string; title: string;
}) { }) {
const { repoId, open, onClose, title } = props const { repoId, open, onClose, title } = props
const postmanLink = `${config.serve}/export/postman?id=${repoId}`
const markdownLink = `${config.serve}/export/markdown?id=${repoId}&origin=${window.location.origin}` const markdownLink = `${config.serve}/export/markdown?id=${repoId}&origin=${window.location.origin}`
const docxLink = `${config.serve}/export/docx?id=${repoId}&origin=${window.location.origin}` const docxLink = `${config.serve}/export/docx?id=${repoId}&origin=${window.location.origin}`
// const pdfLink = `${config.serve}/export/pdf?id=${repoId}&origin=${window.location.origin}` // const pdfLink = `${config.serve}/export/pdf?id=${repoId}&origin=${window.location.origin}`
@ -32,19 +33,19 @@ export default function ExportPostmanForm(props: {
<DialogTitle>{title}</DialogTitle> <DialogTitle>{title}</DialogTitle>
<DialogContent dividers={true}> <DialogContent dividers={true}>
<form className="form-horizontal" onSubmit={() => false}> <form className="form-horizontal" onSubmit={() => false}>
<div> <div className="mb5">
<div> <div>
Postman: </div> Postman:</div>
<div <div
className="alert alert-info" className="alert alert-info"
role="alert" role="alert"
style={{ margin: '8px 0' }} style={{ margin: '8px 0' }}
> >
{' '} <a href={postmanLink} target="_blank" rel="noopener noreferrer">
{config.serve}/export/postman?id={repoId}{' '} {postmanLink}
</a>
</div> </div>
<div> Postman ImportImport <div> Postman ImportImport File</div>
From Link</div>
</div> </div>
<div> <div>

Loading…
Cancel
Save