diff --git a/src/views/Address.vue b/src/views/Address.vue index 5691258..d7bd978 100644 --- a/src/views/Address.vue +++ b/src/views/Address.vue @@ -60,21 +60,24 @@ const testConnect = async () => { robotStore.setIp(ruleForm.value.ip) robotStore.setAgvDeviceId(ruleForm.value.agvDeviceId) robotStore.setAlmDeviceId(ruleForm.value.almDeviceId) - const result = await getRuntimeState({ - ip: robotStore.ip, - deviceId: ruleForm.value.agvDeviceId - }) - loading.value = false - if (result.code === 200) { - robotStore.setPosition(result.data.pose) - robotStore.setBattery(result.data.battery) - robotStore.setCurrentMap(result.data.current_map) - router.push({ + // const result = await getRuntimeState({ + // ip: robotStore.ip, + // deviceId: ruleForm.value.agvDeviceId + // }) + // loading.value = false + // if (result.code === 200) { + // robotStore.setPosition(result.data.pose) + // robotStore.setBattery(result.data.battery) + // robotStore.setCurrentMap(result.data.current_map) + // router.push({ + // path: '/home' + // }) + // } else { + // ElMessage.error(result?.message || '连接服务错误') + // } + router.push({ path: '/home' }) - } else { - ElMessage.error(result?.message || '连接服务错误') - } } } diff --git a/src/views/Home.vue b/src/views/Home.vue index 828ee2c..d4e3d98 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -25,7 +25,7 @@ - + diff --git a/src/views/arm/MechanicalArm.vue b/src/views/arm/MechanicalArm.vue index 53f4d23..09580b9 100644 --- a/src/views/arm/MechanicalArm.vue +++ b/src/views/arm/MechanicalArm.vue @@ -67,8 +67,8 @@
速度:
- -
{{ (jointSpeed / 9 * 100).toFixed(0) }} %
+ +
{{ (jointSpeed / 3 * 100).toFixed(0) }} %
@@ -156,8 +156,8 @@
速度:
- -
{{ (endSpeed / 4 * 100).toFixed(0) }} %
+ +
{{ (endSpeed / 2 * 100).toFixed(0) }} %
@@ -232,8 +232,8 @@
速度:
- -
{{ (postureSpeed / 4 * 100).toFixed(0) }} %
+ +
{{ (postureSpeed / 2 * 100).toFixed(0) }} %