From 2ae980243b7ad705dea575eadcfc4cf4e24073bd Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 17 五月 2022 22:57:19 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/tabviews/zshare/normalTable/index.jsx | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/tabviews/zshare/normalTable/index.jsx b/src/tabviews/zshare/normalTable/index.jsx index 2481f06..9c42ac2 100644 --- a/src/tabviews/zshare/normalTable/index.jsx +++ b/src/tabviews/zshare/normalTable/index.jsx @@ -654,9 +654,11 @@ let photos = '' if (item.field && record.hasOwnProperty(item.field)) { photos = record[item.field] + '' - photos = photos.split(',').filter(Boolean) + } + if (/^data:image/.test(photos)) { + photos = [photos] } else { - photos = '' + photos = photos.split(',').filter(Boolean) } let maxHeight = item.maxHeight || 128 @@ -857,7 +859,12 @@ let photos = [] try { photos = record[col.field] + '' - photos = photos.split(',').filter(Boolean) + + if (/^data:image/.test(photos)) { + photos = [photos] + } else { + photos = photos.split(',').filter(Boolean) + } } catch (e) { photos = [] } -- Gitblit v1.8.0