소스 검색

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

Zimo 5 일 전
부모
커밋
79948e6f06
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
     })