fix: 创建项目时protocol显示异常的bug

This commit is contained in:
wenbo.dong 2017-07-26 12:13:22 +08:00
parent fb8b980958
commit a8307cfd47

View File

@ -177,7 +177,7 @@ class UpDateModal extends Component {
envMessage = env; envMessage = env;
} }
initFormValues.prd_host = projectList[handleUpdateIndex].prd_host; initFormValues.prd_host = projectList[handleUpdateIndex].prd_host;
initFormValues.prd_protocol = projectList[handleUpdateIndex].protocol + '\/\/'; initFormValues.prd_protocol = projectList[handleUpdateIndex].protocol + '\:\/\/';
} }
@ -252,7 +252,7 @@ class UpDateModal extends Component {
})( })(
<Input placeholder="请输入环境域名" style={{ width: '90%', marginRight: 8 }} addonBefore={ <Input placeholder="请输入环境域名" style={{ width: '90%', marginRight: 8 }} addonBefore={
getFieldDecorator(`envs-protocol-${index}`, { getFieldDecorator(`envs-protocol-${index}`, {
initialValue: 'http:\/\/', initialValue: envMessage.length !== 0 && k.domain ? k.domain.split('\/\/')[0]+'\/\/' : '',
rules: [{ rules: [{
required: true required: true
}] }]