From 68470b9ef112ed417fa77fc212d874fb3b2de52f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 06 二月 2025 21:25:52 +0800 Subject: [PATCH] Merge branch 'positec' into bms --- src/tabviews/custom/components/card/cardcellList/index.jsx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tabviews/custom/components/card/cardcellList/index.jsx b/src/tabviews/custom/components/card/cardcellList/index.jsx index 9ebf5c9..a9140c0 100644 --- a/src/tabviews/custom/components/card/cardcellList/index.jsx +++ b/src/tabviews/custom/components/card/cardcellList/index.jsx @@ -224,7 +224,7 @@ return } - if (/^http.+(.txt|.doc|.docx|.pdf|.xlsx|.xls|.zip|.rar|.ppt)$/i.test(url) || card.linkType === 'download') { + if (/^(http|\/\/).+(.txt|.doc|.docx|.pdf|.xlsx|.xls|.zip|.rar|.ppt)$/i.test(url) || card.linkType === 'download') { let name = '' if (card.datatype === 'static') { name = card.value || '' @@ -450,7 +450,7 @@ url = data[card.linkurl] } - if (/^http.+(.txt|.doc|.docx|.pdf|.xlsx|.xls|.zip|.rar)$/i.test(url)) { + if (/^(http|\/\/).+(.txt|.doc|.docx|.pdf|.xlsx|.xls|.zip|.rar)$/i.test(url)) { if (/pdf$/i.test(url)) { val = <><img src="./media/pdf.png" className="file-image" alt=""/> {val}</> } else if (/(.doc|.docx)$/i.test(url)) { -- Gitblit v1.8.0