Commit b1a75606 by Zheng Jie

代码优化

parent 29cc20ea
......@@ -147,7 +147,7 @@ export default {
})
},
initWebSocket() {
const wsUri = (process.env.VUE_APP_WS_API === '/' ? '' : process.env.VUE_APP_WS_API) + 'webSocket/deploy'
const wsUri = (process.env.VUE_APP_WS_API === '/' ? '/' : (process.env.VUE_APP_WS_API + '/')) + 'webSocket/deploy'
this.websock = new WebSocket(wsUri)
this.websock.onerror = this.webSocketOnError
this.websock.onmessage = this.webSocketOnMessage
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment