This commit is contained in:
tdg930622 2025-01-15 14:51:16 +08:00
parent 7a747a8155
commit 7bdfa85c90
2 changed files with 1 additions and 2 deletions

View File

@ -176,7 +176,7 @@ export default {
sessionStorage.setItem('userInfo', JSON.stringify(res.user))
this.$store.commit('setUserInfo', res.user)
let socketUrl = `wss://mediate.dev.trydotec.com/mediate/ws/websocket`;
let socketUrl = res.brokerEndpoint ? res.brokerEndpoint : `wss://mediate.dev.trydotec.com/mediate/ws/websocket`;
this.$stompSocket.initStomp(socketUrl,a => this.socketSucc(a), b => this.socketErr(b));
if (res.user.resources.length > 0) {
let url = "/workbench";

View File

@ -1 +0,0 @@
import fetchApi from "@/services/fetchApi";