fix: 首页UI重构设计

This commit is contained in:
2026-01-09 13:58:09 +08:00
parent 95c1146570
commit 1251897013
6 changed files with 24 additions and 12 deletions

View File

@@ -1,3 +1,5 @@
import {checkDev} from "@/utils/utils";
export class WebSocketManager {
constructor(url) {
this.url = url;
@@ -259,5 +261,6 @@ export class WebSocketManager {
}
// 全局WebSocket实例
export const webSocketManager = new WebSocketManager('ws://127.0.0.1:12080/ws');
// export const webSocketManager = new WebSocketManager('wss://api.ws.g.xiaokang88.com/ws');
// export const webSocketManager = new WebSocketManager('ws://127.0.0.1:12080/ws');
const wsUrl = checkDev('dev')? 'ws://127.0.0.1:12080/ws':'wss://api.ws.g.xiaokang88.com/ws';
export const webSocketManager = new WebSocketManager(wsUrl);