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

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

View File

@ -177,7 +177,7 @@ class UpDateModal extends Component {
envMessage = env;
}
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={
getFieldDecorator(`envs-protocol-${index}`, {
initialValue: 'http:\/\/',
initialValue: envMessage.length !== 0 && k.domain ? k.domain.split('\/\/')[0]+'\/\/' : '',
rules: [{
required: true
}]