修复绑定设备BUG

This commit is contained in:
kron
2025-06-16 00:30:56 +08:00
parent f4be7c597d
commit 39d30fb7ab
6 changed files with 50 additions and 36 deletions

View File

@@ -46,7 +46,7 @@ onMounted(async () => {
if (result.user) {
updateUser(result.user);
const devices = await getMyDevicesAPI();
if (devices.bindings.length) {
if (devices.bindings && devices.bindings.length) {
updateDevice(
devices.bindings[0].deviceId,
devices.bindings[0].deviceName