优化
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user