本地开发反向代理

This commit is contained in:
2025-07-10 16:57:54 +08:00
parent a7370d4e8c
commit d1a47297bf
7 changed files with 86 additions and 87 deletions
+1 -1
View File
@@ -564,7 +564,7 @@ export const useChatWithHistory = (installedAppInfo?: InstalledApp) => {
// 调用 Java 接口
const javaResponse = await fetch(
`${process.env.NEXT_PUBLIC_BASE_API_URL}/api/conversation/feedback`,
`/dev-api/api/conversation/feedback`,
{
method: "POST",
headers: {
+1 -1
View File
@@ -199,7 +199,7 @@ const ChatWithHistoryWrapWithCheckToken: FC<ChatWithHistoryWrapProps> = ({
if (!accessToken) {
router.replace("/login");
} else {
fetch(`${process.env.NEXT_PUBLIC_BASE_API_URL}/getInfo`, {
fetch(`/dev-api/getInfo`, {
method: "GET",
headers: {
Authorization: `Bearer ${accessToken}`,