Update: 更新WebSocket模式

This commit is contained in:
王立帮
2024-12-01 14:44:49 +08:00
parent 134f2c99ae
commit 9bbd0e6720
13 changed files with 611 additions and 520 deletions

View File

@@ -1,6 +1,5 @@
goog.loadJs('electron', () => {
goog.require('layui');
goog.require('Mixly.Serial');
goog.require('Mixly.Env');
goog.require('Mixly.Msg');
@@ -27,8 +26,6 @@ const {
Electron
} = Mixly;
const { form } = layui;
class ElectronSerial extends Serial {
static {
@@ -106,7 +103,7 @@ class ElectronSerial extends Serial {
});
this.#serialport_.on('error', (error) => {
this.onError(error);
this.onError(String(error));
this.onClose(1);
});