feat: 服务接口地址动态获取

This commit is contained in:
duanshuwen
2025-11-13 19:43:03 +08:00
parent 48932e3851
commit 1028e20d42
14 changed files with 44 additions and 55 deletions

View File

@@ -133,7 +133,6 @@ import {
NOTICE_EVENT_LOGOUT,
NOTICE_EVENT_LOGIN_SUCCESS,
} from "@/constant/constant";
import { WSS_URL } from "@/request/base/baseUrl";
import { MessageRole, MessageType, CompName } from "@/model/ChatModel";
import ChatTopWelcome from "../ChatTopWelcome/index.vue";
import ChatTopNavBar from "../ChatTopNavBar/index.vue";
@@ -414,7 +413,7 @@ const initWebSocket = () => {
// 使用配置的WebSocket服务器地址
const token = uni.getStorageSync("token");
const wsUrl = `${WSS_URL}?access_token=${token}`;
const wsUrl = `${appStore.serverConfig.wssUrl}?access_token=${token}`;
// 初始化WebSocket管理器
webSocketManager = new WebSocketManager({