添加分享房间链接和对战结束返回房间
This commit is contained in:
@@ -97,8 +97,10 @@ const handleLogin = async () => {
|
||||
const devices = await getMyDevicesAPI();
|
||||
if (devices.bindings && devices.bindings.length) {
|
||||
updateDevice(devices.bindings[0].deviceId, devices.bindings[0].deviceName);
|
||||
const data = await getDeviceBatteryAPI();
|
||||
updateOnline(data.online);
|
||||
try {
|
||||
const data = await getDeviceBatteryAPI();
|
||||
updateOnline(data.online);
|
||||
} catch (error) {}
|
||||
}
|
||||
loading.value = false;
|
||||
props.onClose();
|
||||
|
||||
Reference in New Issue
Block a user