|
@ -74,16 +74,17 @@ export default {
|
|
|
|
|
|
socket2.on("syncServerHost", data => {
|
|
|
console.log("syncServerHost", data);
|
|
|
ajaxUrl.socketUrl = "https://" + data.server_host + ":9000";
|
|
|
ajaxUrl.socketUrl = "https://" + data.server_host + ":443";
|
|
|
ajaxUrl.imServer =
|
|
|
"https://" + data.server_host + ":" + data.port + "/api/v2";
|
|
|
ajaxUrl.videoScoketUrl = data.server_host + ":9000/groupcall";
|
|
|
ajaxUrl.videoScoketUrl = data.server_host + ":8443/groupcall";
|
|
|
window.localStorage.setItem(
|
|
|
"serverUrl",
|
|
|
"https://" + data.server_host + ":" + data.port
|
|
|
);
|
|
|
vm.loginIM();
|
|
|
this.$router.replace("/message");
|
|
|
this.$root.bus.$emit("loadSessionDoctor")
|
|
|
});
|
|
|
|
|
|
// 错误提醒
|