Browse Source

修改IM的WebSocket端口

k3sc 4 years ago
parent
commit
4c9f79b050
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/layout/index.vue

+ 2 - 2
src/layout/index.vue

@@ -57,7 +57,7 @@
     },
     mounted() {
       var userid = this.$store.getters.name
-      var hostname = document.location.hostname
+      var hostname = document.location.hostname + ':3333'
       var basePath = process.env.VUE_APP_BASE_API + '/chat'
       // var socket = new WebSocket('ws://' + hostname + basePath + '/websocket/' + userid)
       var socket = new WebSocket('ws://' + hostname + basePath + '/websocket/' + userid)
@@ -129,7 +129,7 @@
           }]
           , isAudio: true
           , isVideo: true
-          , title: '我的WebIM' //自定义主面板最小化时的标题
+          , title: '我的聊天' //自定义主面板最小化时的标题
           , voice: 'default.wav'  //新消息提醒音频
           , notice: false //是否开启桌面消息提醒,默认false
           //,msgbox: layui.cache.dir + 'css/modules/layim/html/msgbox.html' //消息盒子页面地址,若不开启,剔除该项即可