|
|
@ -29,7 +29,7 @@ export const useWebSocketStore = defineStore({ |
|
|
|
const operatorStore = useOperatorStore() |
|
|
|
init.connect() |
|
|
|
init.ws.onmessage = function (ev) { |
|
|
|
console.log(JSON.parse(ev.data)) |
|
|
|
// console.log(JSON.parse(ev.data))
|
|
|
|
const { ackcode, messageId } = JSON.parse(ev.data) |
|
|
|
|
|
|
|
if (ackcode == 0) { |
|
|
@ -129,7 +129,7 @@ export const useWebSocketStore = defineStore({ |
|
|
|
const testStore = useTestStore() |
|
|
|
const settingStore = useSettingStore() |
|
|
|
init.ws.onmessage = function (ev) { |
|
|
|
console.log(JSON.parse(ev.data)) |
|
|
|
// console.log(JSON.parse(ev.data))
|
|
|
|
const { command } = JSON.parse(ev.data) |
|
|
|
switch (command) { |
|
|
|
case 'RealtimeSensorDataReport': |
|
|
|