소스 검색

问题修改

SunZehao 5 달 전
부모
커밋
69a6ed3097
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/IntegratedAlarm/safe/customWarning/index.vue

+ 1 - 1
src/views/IntegratedAlarm/safe/customWarning/index.vue

@@ -675,7 +675,7 @@ const export2Excel = async () => {
     }
     const stationName = stationList.value.find((ele) => {
       return ele.id === state.stationId;
-    }).name;
+    })?.name || "";
     const fileName = `${stationName} ${state.dateTime[0]} ~ ${state.dateTime[1]} 数据表`;
     outExportExcel(
       tableHeader,