浏览代码

问题修改

SunZehao 4 月之前
父节点
当前提交
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,