fix: 修复WebSocket连接URL问题
This commit is contained in:
parent
a4d4968fc5
commit
0a55354619
3
App.vue
3
App.vue
|
|
@ -172,10 +172,9 @@ export default {
|
|||
buildWsUrl() {
|
||||
const protocol =
|
||||
window.location.protocol.indexOf("https") === 0 ? "wss" : "ws";
|
||||
const host = this.$u.http.config.baseUrl; // 后端端口
|
||||
const userId =
|
||||
(this.vuex_user && (this.vuex_user.id || this.vuex_user.Id)) || "";
|
||||
return `${protocol}://${host}/api/Dialogue/HandleConnection?Id=${userId}`; // &equipmentType=0
|
||||
return `${protocol}://120.55.234.65:8082/api/Dialogue/HandleConnection?Id=${userId}`; // &equipmentType=0
|
||||
},
|
||||
// 初始化原生 WebSocket 连接
|
||||
initWebSocket() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue