From fa7e80eb0979c4669d5bd6f0d4f3bbb5c505e927 Mon Sep 17 00:00:00 2001 From: zhugy Date: Tue, 23 Jan 2024 16:44:23 +0800 Subject: [PATCH] =?UTF-8?q?feat():=E8=B5=84=E6=BA=90=E8=B0=83=E5=BA=A6?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=96=B0=E5=A2=9E=E8=B6=85=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TableModule/index.jsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/TableModule/index.jsx b/src/components/TableModule/index.jsx index 9505a15..5f40021 100644 --- a/src/components/TableModule/index.jsx +++ b/src/components/TableModule/index.jsx @@ -949,10 +949,14 @@ const TableModule = forwardRef((props, ref) => { }) .then((res) => { if (res.status === 20000) { - const link = document.createElement("a"); - link.href = res.data.url || res.data.export_url; - link.target = "_blank"; // 打开新页面 - link.click(); + if (pageName === "charge") { //特殊情况,充电记录导出 + message.success(res.message) + } else { + const link = document.createElement("a"); + link.href = res.data.url || res.data.export_url; + link.target = "_blank"; // 打开新页面 + link.click(); + } setTipModal({ ...tipModal, visible: false, filename: