Sfoglia il codice sorgente

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

Zimo 5 giorni fa
parent
commit
79948e6f06
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
     })