lxh 11 月之前
父節點
當前提交
b3bf1ff39c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/vent/monitorManager/deviceMonitor/components/device/modal/bundle.modal.vue

+ 1 - 1
src/views/vent/monitorManager/deviceMonitor/components/device/modal/bundle.modal.vue

@@ -188,7 +188,7 @@ export default defineComponent({
 
     //获取历史数据
     async function getListdays() {
-      if (posMonitor.value.stationtype != 'redis') {
+      if (posMonitor.value.stationtype && posMonitor.value.stationtype != 'redis') {
         const ttime_begin = dayjs(new Date().getTime() - 3 * 24 * 60 * 60 * 1000).format('YYYY-MM-DD hh:mm:ss');
         const ttime_end = dayjs(new Date().getTime()).format('YYYY-MM-DD hh:mm:ss');
         const pageNo = 1;