From 0f2502acd1ffb7f8c6576f7bb68a1c6a9cd8b6e8 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期四, 19 九月 2024 10:33:14 +0800 Subject: [PATCH] # --- zy-acs-flow/src/page/components/ImportModal.jsx | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/zy-acs-flow/src/page/components/ImportModal.jsx b/zy-acs-flow/src/page/components/ImportModal.jsx index 309ee86..f4930d1 100644 --- a/zy-acs-flow/src/page/components/ImportModal.jsx +++ b/zy-acs-flow/src/page/components/ImportModal.jsx @@ -18,10 +18,8 @@ import DialogCloseButton from './DialogCloseButton'; import { usePapaParse } from './usePapaParse'; -export function ImportModal({ open, onClose, sampleCsv, useCodeImport }) { +export function ImportModal({ open, onClose, importTemp, useCodeImport }) { const refresh = useRefresh(); - - const SAMPLE_URL = `data:text/csv;name=crm_contacts_sample.csv;charset=utf-8,${encodeURIComponent(sampleCsv.default)}`; const { processBatch } = useCodeImport(); const { importer, parseCsv, reset } = usePapaParse({ @@ -149,7 +147,7 @@ component={Link} label="Download CSV sample" color="info" - to={SAMPLE_URL} + to={importTemp} download={'crm_contacts_sample.csv'} /> } -- Gitblit v1.9.1