modify websocket url

This commit is contained in:
龚祖望 2022-11-11 14:36:30 +08:00
parent 7ffe1b4134
commit 4e11f4138f
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ export default {
},
methods: {
openSocket() {
const socketUrl = 'ws://192.168.23.100:8080/websocket/jxsd'
const socketUrl = 'ws://localhost:8080/websocket/jxsd'
const socket = new WebSocket(socketUrl)
socket.onopen = () => {
console.log('socket已打开')