From 4677982c003e357cff8f2544be44706bf31ea6de Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 05 五月 2022 19:12:19 +0800 Subject: [PATCH] 2022-05-05 --- src/tabviews/custom/components/share/normalTable/index.jsx | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/tabviews/custom/components/share/normalTable/index.jsx b/src/tabviews/custom/components/share/normalTable/index.jsx index 0c6f9ad..a646dcb 100644 --- a/src/tabviews/custom/components/share/normalTable/index.jsx +++ b/src/tabviews/custom/components/share/normalTable/index.jsx @@ -224,7 +224,12 @@ let photos = '' if (record[col.field]) { photos = `${record[col.field]}` - photos = photos.split(',') + } + + if (/^data:image/.test(photos)) { + photos = [photos] + } else { + photos = photos.split(',').filter(Boolean) } let cols = 24 / (col.picSort || 1) -- Gitblit v1.8.0