fix issue

pull/360/head
vapao 2021-07-27 09:47:39 +08:00
parent aba43b8709
commit 916c70a16b
3 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ class AddSelect extends React.Component {
store.deploy = {
is_audit: false,
rst_notify: {mode: '0'},
host_ids: [undefined],
host_ids: [],
host_actions: [],
server_actions: []
}

View File

@ -43,8 +43,8 @@ export default observer(function Ext1Setup1() {
</Form.Item>
</Form.Item>
<Form.Item required label="目标主机">
{info.host_ids.length > 0 && `已选择 ${info.host_ids.length}`}
<Button type="link" onClick={() => store.selectorVisible = true}>选择主机</Button>
{info.host_ids.length > 0 && <span style={{marginRight: 16}}>已选择 {info.host_ids.length} </span>}
<Button type="link" style={{padding: 0}} onClick={() => store.selectorVisible = true}>选择主机</Button>
</Form.Item>
<Form.Item required label="Git仓库地址">
<Input disabled={store.isReadOnly} value={info['git_repo']} onChange={e => info['git_repo'] = e.target.value}

View File

@ -44,8 +44,8 @@ export default observer(function Ext2Setup1() {
</Form.Item>
</Form.Item>
<Form.Item required label="目标主机">
{info.host_ids.length > 0 && `已选择 ${info.host_ids.length}`}
<Button type="link" onClick={() => setSelectorVisible(true)}>选择主机</Button>
{info.host_ids.length > 0 && <span style={{marginRight: 16}}>已选择 {info.host_ids.length} </span>}
<Button type="link" style={{padding: 0}} onClick={() => setSelectorVisible(true)}>选择主机</Button>
</Form.Item>
<Form.Item label="发布模式">
<Radio.Group