From d1657e9835a6b3350dee76956deae3029cfe4b11 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 20 四月 2021 15:54:06 +0800 Subject: [PATCH] 2021-04-20 --- src/views/mobdesign/index.jsx | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/mobdesign/index.jsx b/src/views/mobdesign/index.jsx index 7cbf68a..cc1a15d 100644 --- a/src/views/mobdesign/index.jsx +++ b/src/views/mobdesign/index.jsx @@ -1284,15 +1284,18 @@ } else if (item.type === 'group') { check(item.components) return + } else if (item.type === 'navbar' && !item.wrap.MenuNo) { + error = `瀵艰埅鏍忋��${item.name}銆嬫湭璁剧疆鑿滃崟鍙傛暟锛乣 } - if (['propcard', 'brafteditor', 'sandbox'].includes(item.subtype) && item.wrap.datatype === 'static') return + + if (['propcard', 'brafteditor', 'sandbox', 'tabbar'].includes(item.subtype) && item.wrap.datatype === 'static') return if (item.setting) { if (item.setting.interType === 'system' && item.setting.execute !== 'false' && !item.setting.dataresource) { error = `缁勪欢銆�${item.name}銆嬫湭璁剧疆鏁版嵁婧愶紒` } else if (item.setting.interType === 'system' && item.setting.execute === 'false' && item.scripts.length === 0) { error = `缁勪欢銆�${item.name}銆嬫湭璁剧疆鏁版嵁婧愶紒` - } else if (!item.setting.primaryKey) { + } else if (!item.setting.primaryKey && !['propcard', 'tabbar'].includes(item.subtype)) { error = `缁勪欢銆�${item.name}銆嬫湭璁剧疆涓婚敭锛乣 } } -- Gitblit v1.8.0