mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-08 20:39:44 +00:00
fix: Fix export flow error (#1994)
Co-authored-by: 谨欣 <echo.cmy@antgroup.com> Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
This commit is contained in:
@@ -32,7 +32,7 @@ export const ExportFlowModal: React.FC<Props> = ({
|
||||
a.download = values.file_name || 'flow.json';
|
||||
a.click();
|
||||
} else {
|
||||
const linkUrl = `${process.env.API_BASE_URL}/api/v2/serve/awel/flow/export/${values.uid}?export_type=${values.export_type}&format=${values.format}`;
|
||||
const linkUrl = `${process.env.API_BASE_URL ?? ''}/api/v2/serve/awel/flow/export/${values.uid}?export_type=${values.export_type}&format=${values.format}`;
|
||||
window.open(linkUrl);
|
||||
}
|
||||
messageApi.success(t('Export_Flow_Success'));
|
||||
|
@@ -77,7 +77,7 @@ export const renderUpload = (params: Props) => {
|
||||
|
||||
const props: UploadProps = {
|
||||
name: 'files',
|
||||
action: process.env.API_BASE_URL + data.ui.action,
|
||||
action: process.env.API_BASE_URL ?? '' + data.ui.action,
|
||||
headers: {
|
||||
authorization: 'authorization-text',
|
||||
},
|
||||
|
Reference in New Issue
Block a user