Explorar o código

fix修复监控看板查询设备报错

Zimo hai 5 días
pai
achega
79948e6f06
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/oli-connection/monitoring-board/index.vue

+ 1 - 1
src/views/oli-connection/monitoring-board/index.vue

@@ -95,7 +95,7 @@ async function loadDeviceOptions() {
   deviceLoading.value = true
   try {
     const data = await IotDeviceApi.getBoardDevice({
-      deptId: deviceQuery.value.deptId,
+      deptId: [deviceQuery.value.deptId].flat().at(-1),
       ifInline: deviceQuery.value.ifInline,
       pageSize: 100
     })