lxh 9 months ago
parent
commit
b3bf1ff39c

+ 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;