|
@@ -9,12 +9,10 @@ export default class LogiService {
|
|
|
invoke('start_reading_data').then(() => {
|
|
invoke('start_reading_data').then(() => {
|
|
|
listen('g923-data', (event: { payload: string }) => {
|
|
listen('g923-data', (event: { payload: string }) => {
|
|
|
const data = this.parseG923Data(event.payload)
|
|
const data = this.parseG923Data(event.payload)
|
|
|
- console.log('解析后的数据:', data)
|
|
|
|
|
this.store.setMqttMessage({ type: 'control', data })
|
|
this.store.setMqttMessage({ type: 'control', data })
|
|
|
})
|
|
})
|
|
|
}).catch((er) => {
|
|
}).catch((er) => {
|
|
|
- console.log('罗技eror', er)
|
|
|
|
|
- window.$notification.error({ title: er, duration: 5000 })
|
|
|
|
|
|
|
+ window.$notification.error({ title: er, duration: 2500 })
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|