mirror of
https://github.com/silenty4ng/k5web
synced 2025-04-19 00:29:49 +00:00
update
This commit is contained in:
parent
e918afc150
commit
fc410bbac2
1 changed files with 3 additions and 3 deletions
|
@ -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: "" });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue