This commit is contained in:
2025-08-15 16:51:24 +08:00
parent 8e4f51500f
commit 657c426d9b
5 changed files with 52 additions and 715 deletions

View File

@@ -1,7 +1,7 @@
import { getTokenKeySessionStorage } from "@/utils/auth";
// 使用环境变量配置基础URL
const BASE_URL = process.env.VUE_APP_API_BASE_URL || "http://localhost:8088";
const BASE_URL = null;
/**
* 创建聊天流式连接
@@ -16,7 +16,7 @@ export function createChatStream(params) {
const requestId = `req-${Date.now()}-${Math.random()
.toString(36)
.slice(2, 8)}`;
const url = `${BASE_URL}/aitutor/aichat/stream`;
const url = `${process.env.VUE_APP_BASE_API}/aitutor/aichat/stream`;
const token = getTokenKeySessionStorage();
if (!token) {