fix(nvr-record-diag-card): csv exported with character encoding error

This commit is contained in:
yangsy
2025-11-06 15:27:37 +08:00
parent a7f1dd6d9a
commit 4ee2549456

View File

@@ -170,7 +170,8 @@ const onClickExportRecordCheck = () => {
const csvContent = header + rows;
const stationStore = useStationStore();
const stationName = stationStore.stationList.find((station) => station.code === stationCode.value)?.name;
downloadByData(csvContent, `${stationName}-录像缺失记录-${dayjs().format('YYYY-MM-DD-HHmmss')}.csv`, 'text/csv');
const time = dayjs().format('YYYY-MM-DD_HH-mm-ss');
downloadByData(csvContent, `${stationName}_录像缺失记录_${time}.csv`, 'text/csv;charset=utf-8', '\ufeff');
};
</script>