From f01086dc94827dbb15811760e5d13683977fcec9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 10 十一月 2022 00:40:12 +0800 Subject: [PATCH] 2022-11-10 --- src/tabviews/custom/components/form/tab-form/index.jsx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tabviews/custom/components/form/tab-form/index.jsx b/src/tabviews/custom/components/form/tab-form/index.jsx index 013e6ad..18716aa 100644 --- a/src/tabviews/custom/components/form/tab-form/index.jsx +++ b/src/tabviews/custom/components/form/tab-form/index.jsx @@ -55,8 +55,8 @@ if (config.wrap.datatype !== 'static') { _sync = config.setting.sync === 'true' - if (_sync && data && data[config.dataName]) { - _data = data[config.dataName] + if (_sync && data) { + _data = data[config.dataName] || {$$empty: true} if (Array.isArray(_data)) { _data = _data[0] || {$$empty: true} } -- Gitblit v1.8.0