File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ visit [http://localhost:8080/](http://localhost:8080/)
5858
5959```
6060npm install -g pm2 # install just once
61+ npm i -d
6162npm run build
6263npm run deploy
6364```
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export default {
5252 } ;
5353 } ,
5454 mounted ( ) {
55- const socket = window . io ( ':8080 ' ) ;
55+ const socket = window . io ( '/ ' ) ;
5656 const that = this ;
5757 // 告诉socket server该用户登录的动作
5858 let time = moment ( ) . format ( 'YYYY/MM/DD HH:mm:ss' ) ;
@@ -138,7 +138,7 @@ export default {
138138 'addPrivateRecord' ,
139139 ] ) ,
140140 sendMsg ( ) {
141- const socket = window . io ( ':8080 ' ) ;
141+ const socket = window . io ( '/ ' ) ;
142142 if ( this . message . trim ( ) !== '' ) {
143143 // 非群聊
144144 if ( this . talkingTo !== - 1 ) {
You can’t perform that action at this time.
0 commit comments