mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-06 12:45:22 +08:00
fix: 创建项目时protocol显示异常的bug
This commit is contained in:
parent
fb8b980958
commit
a8307cfd47
@ -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
|
||||||
}]
|
}]
|
||||||
|
Loading…
Reference in New Issue
Block a user