src/views/mobdesign/index.jsx
@@ -1464,7 +1464,8 @@ insert = (item) => { let config = fromJS(this.state.config).toJS() if (item.type === 'topbar' && config.components.findIndex(m => m.type === 'topbar') > -1) { if (item.type === 'topbar') { if (config.components.findIndex(m => m.type === 'topbar') > -1) { notification.warning({ top: 92, message: '导航栏不可重复添加!', @@ -1472,6 +1473,10 @@ }) return } if (!config.style.paddingTop) { config.style.paddingTop = '50px' } } config.components.push(item)