fix: 首页UI重构设计
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user