1
0
Fork 0
mirror of https://github.com/silenty4ng/k5web synced 2025-04-19 00:29:49 +00:00
This commit is contained in:
Silent YANG 2024-02-05 17:08:30 +08:00
parent e918afc150
commit fc410bbac2

View file

@ -149,6 +149,7 @@
alert('连接失败');
return;
}
appStore.updateSettings({ connectPort: _connect });
const driversList : any = {};
Object.keys(drivers).forEach((key) => {
@ -175,10 +176,9 @@
}
})
console.log(_configuration);
appStore.updateSettings({ connectState: true, connectPort: _connect, firmwareVersion: version, configuration: _configuration });
appStore.updateSettings({ connectState: true, firmwareVersion: version, configuration: _configuration });
}else{
disconnect(appStore.connectPort);
await disconnect(appStore.connectPort);
appStore.updateSettings({ connectState: false, connectPort: null, firmwareVersion: "" });
}
}