guonan
2025-05-23 986e15a067c2f11563f2f3db8b96dc334dc28842
src/components/menu/Device.vue
@@ -40,12 +40,12 @@
  initeWaterPrimitiveView()
});
onBeforeRouteUpdate((to, from, next) => {
  if (to.path !== '/zhjc') {
    handleCleanup();
  }
  next();
});
// onBeforeRouteUpdate((to, from, next) => {
//   if (to.path !== '/zhjc') {
//     handleCleanup();
//   }
//   next();
// });
const route = useRoute();
onBeforeUnmount(() => {
@@ -77,7 +77,7 @@
    item.className = "device";
    item.showLabel = true;
    // 打印每个设备的名称和设备类型
    console.log(`设备名称: ${item.id}, 设备类型: ${item.name}`);
    // console.log(`设备名称: ${item.id}, 设备类型: ${item.name}`);
    createPoint(item);
  });
  deviceEntities.value = list;