diff --git a/spug_web/src/pages/deploy/app/AddSelect.js b/spug_web/src/pages/deploy/app/AddSelect.js index df27540..cafbc21 100644 --- a/spug_web/src/pages/deploy/app/AddSelect.js +++ b/spug_web/src/pages/deploy/app/AddSelect.js @@ -24,6 +24,7 @@ class AddSelect extends React.Component { store.record = { is_audit: false, host_ids: [undefined], + actions: [{}] } }; diff --git a/spug_web/src/pages/deploy/app/Ext2Setup3.js b/spug_web/src/pages/deploy/app/Ext2Setup3.js index 12ea593..cdd3049 100644 --- a/spug_web/src/pages/deploy/app/Ext2Setup3.js +++ b/spug_web/src/pages/deploy/app/Ext2Setup3.js @@ -19,7 +19,8 @@ class Ext2Setup3 extends React.Component { handleSubmit = () => { this.setState({loading: true}); - http.post('/api/app/', {extend: '2', actions: store.actions}) + store.record['extend'] = '2'; + http.post('/api/app/', store.record) .then(res => { message.success('保存成功'); store.ext2Visible = false; @@ -28,9 +29,10 @@ class Ext2Setup3 extends React.Component { }; render() { + const actions = store.record['actions']; return (