Explorar o código

fix websocket连接改为自己部署服务的服务器ip

Jay hai 7 meses
pai
achega
81cb4fcaa0
Modificáronse 1 ficheiros con 9 adicións e 9 borrados
  1. 9 9
      src/main.js

+ 9 - 9
src/main.js

@@ -35,15 +35,15 @@ Vue.use(vuescroll, {
 
 Vue.config.productionTip = false;
 
-var strUrl = window.location.href;
-console.log("strUrl", strUrl)
-var strIp = "";
-if (strUrl.indexOf("172.16.50.4") != -1) {
-  strIp = "172.16.50.4:19703";
-}
-else {
-  strIp = "47.102.97.214";
-}
+// var strUrl = window.location.href;
+// var strIp = "";
+// if (strUrl.indexOf("172.16.50.4") != -1) {
+//   strIp = "172.16.50.4:19703";
+// }
+// else {
+//   strIp = "47.102.97.214";
+// }
+var strIp = "172.16.50.4:19703";
 
 Vue.use(
   new VueSocketIO({