SunZehao 5 kuukautta sitten
vanhempi
commit
69a6ed3097
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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,