Skip to content

Commit 5898cf7

Browse files
committed
fix: fix request host
1 parent c4b6c06 commit 5898cf7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • chat2db-client/src/components/ImportConnection

chat2db-client/src/components/ImportConnection/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ import i18n from '@/i18n';
66
const uploadFileType = {
77
ncx: {
88
accept: '.ncx',
9-
uploadUrl: '/api/converter/ncx/upload',
9+
uploadUrl: window._BaseURL + '/api/converter/ncx/upload',
1010
},
1111
dbp: {
1212
accept: '.dbp',
13-
uploadUrl: '/api/converter/dbp/upload',
13+
uploadUrl: window._BaseURL + '/api/converter/dbp/upload',
1414
},
1515
};
16+
1617
interface IImportConnectionProps {
1718
open: boolean;
1819
onClose: () => void;

0 commit comments

Comments
 (0)