From 4ee25494568e3ae6403a9fde6d82c82d4332a49a Mon Sep 17 00:00:00 2001 From: yangsy Date: Thu, 6 Nov 2025 15:27:37 +0800 Subject: [PATCH] fix(nvr-record-diag-card): csv exported with character encoding error --- .../device-card/current-diag-card/nvr-record-diag-card.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/device-page/device-card/current-diag-card/nvr-record-diag-card.vue b/src/components/device-page/device-card/current-diag-card/nvr-record-diag-card.vue index 961fc47..048c8e9 100644 --- a/src/components/device-page/device-card/current-diag-card/nvr-record-diag-card.vue +++ b/src/components/device-page/device-card/current-diag-card/nvr-record-diag-card.vue @@ -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'); };