fix(nvr-record-diag-card): csv exported with character encoding error
This commit is contained in:
@@ -170,7 +170,8 @@ const onClickExportRecordCheck = () => {
|
|||||||
const csvContent = header + rows;
|
const csvContent = header + rows;
|
||||||
const stationStore = useStationStore();
|
const stationStore = useStationStore();
|
||||||
const stationName = stationStore.stationList.find((station) => station.code === stationCode.value)?.name;
|
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>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user