mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
fix
This commit is contained in:
parent
0583fff3f8
commit
546a011520
@ -31,7 +31,6 @@ const success = () => {
|
|||||||
|
|
||||||
@connect(
|
@connect(
|
||||||
state => {
|
state => {
|
||||||
console.log(state)
|
|
||||||
return {
|
return {
|
||||||
reqParams: state.addInterface.reqParams,
|
reqParams: state.addInterface.reqParams,
|
||||||
resParams: state.addInterface.resParams,
|
resParams: state.addInterface.resParams,
|
||||||
@ -245,7 +244,7 @@ class AddInterface extends Component {
|
|||||||
const TabPane = Tabs.TabPane
|
const TabPane = Tabs.TabPane
|
||||||
const { server_ip } = this.props
|
const { server_ip } = this.props
|
||||||
const { isLoading, isSave, mockJson='', mockURL } = this.state
|
const { isLoading, isSave, mockJson='', mockURL } = this.state
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="add-interface-box">
|
<section className="add-interface-box">
|
||||||
<div className="content">
|
<div className="content">
|
||||||
|
@ -209,19 +209,28 @@
|
|||||||
clear: both;
|
clear: both;
|
||||||
padding: 10px 0 0 0;
|
padding: 10px 0 0 0;
|
||||||
margin: 10px 0 0 90px;
|
margin: 10px 0 0 90px;
|
||||||
|
zoom: 1;
|
||||||
|
overflow: hidden;
|
||||||
|
.title {
|
||||||
|
float: left;
|
||||||
|
line-height: 35px;
|
||||||
|
}
|
||||||
p {
|
p {
|
||||||
width: 52.8%;
|
width: 52.8%;
|
||||||
height: 35px;
|
height: 35px;
|
||||||
line-height: 35px;
|
line-height: 35px;
|
||||||
border: 1px #DDD solid;
|
border: 1px #DDD solid;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: -4px;
|
|
||||||
margin: 0 10px 0 8px;
|
margin: 0 10px 0 8px;
|
||||||
padding: 0 0 0 10px;
|
padding: 0 0 0 10px;
|
||||||
|
float: left;
|
||||||
}
|
}
|
||||||
.host {
|
.host {
|
||||||
margin: 10px 0 0 80px;
|
margin: 10px 0 0 80px;
|
||||||
}
|
}
|
||||||
|
#mock-clipboard {
|
||||||
|
margin: 3px 0 0 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.loading {
|
.loading {
|
||||||
|
@ -38,7 +38,7 @@ class MockUrl extends Component {
|
|||||||
const { serverIp } = this.props
|
const { serverIp } = this.props
|
||||||
return (
|
return (
|
||||||
<section className="mock-url-box">
|
<section className="mock-url-box">
|
||||||
<span>mock地址 : </span>
|
<span className="title">mock地址 : </span>
|
||||||
<p id="mock-p">{this.props.mockURL}</p>
|
<p id="mock-p">{this.props.mockURL}</p>
|
||||||
<Button type="primary" id="mock-clipboard">复制</Button>
|
<Button type="primary" id="mock-clipboard">复制</Button>
|
||||||
<div className="host">请配置host ***.***.***.*** { serverIp }</div>
|
<div className="host">请配置host ***.***.***.*** { serverIp }</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user