This commit is contained in:
chenyang
2022-06-29 16:28:42 +08:00
parent eac5f2eab7
commit 1eabd65d02
5 changed files with 27 additions and 10 deletions
+3
View File
@@ -25,6 +25,9 @@
console.log(qr_websocket)
console.log('打开');
const ws = new WebSocket(`ws://${window.location.host}/ws/qr/?${qr_websocket.uuid}`)
ws.onmessage = function (e) {
console.log(e.data)
}
qr_websocket.websocket = ws
});