Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { REACT_APP_ENV = 'dev' } = process.env;

export default defineConfig({
define: {
API_BASE_URL: `${window.location.origin.replace('web.', '')}`, // HTTP 请求 BaseURl
API_BASE_URL: 'http://appjob-a0314fb1-e511-4bb9-a63f-34f6174558af.llm.sxwl.ai:30005', // HTTP 请求 BaseURl
H5_DEFAULT_ACTIVE_KNOWLEDGE_LIST: ['KBed4e7f730e6048aca545a4b83dcbf8f9_240625'], // h5 页面默认使用的知识库列表
},
hash: true,
Expand Down
3 changes: 2 additions & 1 deletion web/src/services/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { request } from '@umijs/max';
import useSWR from 'swr';

export const BaseUrl = API_BASE_URL;
// export const BaseUrl = API_BASE_URL;
export const BaseUrl = `${window.location.origin.replace('web.', '')}`;
export async function api_get_file_base64(data: { file_id: string; user_id: string }) {
return request(`${BaseUrl}/api/local_doc_qa/get_file_base64`, {
method: 'POST',
Expand Down