细节优化

This commit is contained in:
kron
2025-06-22 15:04:10 +08:00
parent bd438e7b62
commit 1e681b46c7
11 changed files with 115 additions and 63 deletions

View File

@@ -42,7 +42,7 @@ const handleScan = () => {
};
const confirmBind = async () => {
if (addDevice.value.id) {
if (!justBind.value && addDevice.value.id) {
await bindDeviceAPI(addDevice.value);
updateDevice(addDevice.value.id, addDevice.value.name);
confirmBindTip.value = false;