diff --git a/src/views/system/components/SystemFloorBar.vue b/src/views/system/components/SystemFloorBar.vue index cb41881..db27331 100644 --- a/src/views/system/components/SystemFloorBar.vue +++ b/src/views/system/components/SystemFloorBar.vue @@ -39,7 +39,7 @@ const onClick = (item) => { router.push({ name: 'sub_system', params: { ...route.params, floor_id: item.key - }, query: { ...route.query, gas: route.query.gas, mode: route.params.floor_id === "main" ? "3D" : route.query.mode } + }, query: { ...route.query, gas: route.query.gas, mode: item.key === "main" ? "3D" : route.query.mode } }) }