瀏覽代碼

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
     })