Commit 01c78054 authored by 李玲燕's avatar 李玲燕

修改无人模式切换判断

parent 2f2c1d80
......@@ -10,6 +10,7 @@
"dependencies": {
"@turf/turf": "^6.5.0",
"axios": "^1.3.4",
"deck.gl": "^8.9.31",
"dexie": "^3.2.3",
"leaflet": "^1.9.3",
"leaflet-rotate": "^0.2.5",
......
{
"SERVICE_IP": "172.16.0.118:1234",
"SERVICE_IP": "172.16.0.101:1234",
"MAP_CENTER": [39.74441007068,111.24544532751],
"version": "1.1.4"
}
\ No newline at end of file
......@@ -32,6 +32,7 @@
import { markRaw, ref, computed } from 'vue';
import { useVehicleStore } from '@/store/VehicleStore.js'
import { storeToRefs } from 'pinia'
import { Message } from 'view-ui-plus'
const SIDE_BAR = [
{
......@@ -93,19 +94,12 @@
if (name === 'mode_switch' && isDisable.value === 'disabled') {
return
}
if(typeof Current_Gear==string){
if((Current_Gear!='P'||Current_Gear!='N')&&loadBrakeStatus==0){
Message.error('不能切换无人模式')
return
}
}else{
if((Current_Gear!=126||Current_Gear!=0)&&loadBrakeStatus==0){
Message.error('不能切换无人模式')
return
}
}
if (['P', 126].includes(Current_Gear) || (['N', 0].includes(Current_Gear) && loadBrakeStatus != 0)) {
active.value = name
emit('changeTab', name)
} else {
Message.error('不能切换无人模式')
}
}
function changeMode() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment