pages/inspection/scene/info/index.js
@@ -1,11 +1,10 @@ import { useDeviceList } from './devicelist-proxy.js'; import { useDeviceLocation } from './device-location-proxy.js'; Page({ behaviors: [useDeviceList, useDeviceLocation], behaviors: [useDeviceList], data: { // 场景基本信息 sceneInfo:{}, scene:{}, // 监测设备信息 monitorDevices:[], // 治理设备信息 @@ -20,6 +19,9 @@ this.setData({ scene: data.scene, }); [0, 1, 2].forEach(e => { this.fetchDeviceInfo(e); }); } }); },