| | |
| | | const dev = "https://api.huangzhongzhang.com"; // 开发环境url |
| | | const prod = "https://api.huangzhongzhang.com"; // 生产环境url |
| | | const dev = "http://156.245.145.211"; // 开发环境url |
| | | const prod = "http://156.245.145.211"; // 生产环境url |
| | | |
| | | export default { |
| | | baseURL: process.env.NODE_ENV == "development" ? dev : prod, |
| | |
| | | initWebSocket() { |
| | | console.log("initWebSocket"); |
| | | this.Trade = new WhrWebSocket({ |
| | | path: `wss://ws.isusstock.com/websocket-server `, |
| | | path: `wss://usws.yanshiz.com/websocket-server `, |
| | | onmessage: this.getTradeMessage, |
| | | }); |
| | | |