diff --git a/spug_web/src/pages/deploy/app/AddSelect.js b/spug_web/src/pages/deploy/app/AddSelect.js index cafbc21..c007f83 100644 --- a/spug_web/src/pages/deploy/app/AddSelect.js +++ b/spug_web/src/pages/deploy/app/AddSelect.js @@ -24,7 +24,7 @@ class AddSelect extends React.Component { store.record = { is_audit: false, host_ids: [undefined], - actions: [{}] + actions: [{target: 'server'}] } }; diff --git a/spug_web/src/pages/deploy/app/Ext2Setup3.js b/spug_web/src/pages/deploy/app/Ext2Setup3.js index 7c21224..a7ad3c9 100644 --- a/spug_web/src/pages/deploy/app/Ext2Setup3.js +++ b/spug_web/src/pages/deploy/app/Ext2Setup3.js @@ -20,6 +20,7 @@ class Ext2Setup3 extends React.Component { handleSubmit = () => { this.setState({loading: true}); store.record['extend'] = '2'; + store.record['actions'] = store.record['actions'].filter(x => x.title && x.data); http.post('/api/app/', store.record) .then(res => { message.success('保存成功'); @@ -65,7 +66,7 @@ class Ext2Setup3 extends React.Component { ))}