-
+
+
+
{ method === 'POST' && paramsType !== 'form' && paramsType !== 'file' &&
)
}
@@ -418,7 +438,7 @@ export default class InterfaceTest extends Component {
}
{
method !== 'POST' && (
-
GET 请求没有 Body。
+
GET 请求没有 Body。
)
}
diff --git a/client/containers/AddInterface/InterfaceTest/InterfaceTest.scss b/client/containers/AddInterface/InterfaceTest/InterfaceTest.scss
index e8883c64..a5f2179f 100644
--- a/client/containers/AddInterface/InterfaceTest/InterfaceTest.scss
+++ b/client/containers/AddInterface/InterfaceTest/InterfaceTest.scss
@@ -11,3 +11,8 @@
color: #108ee9;
}
}
+.floatfix:after{
+ content:"";
+ display:table;
+ clear:both;
+}
diff --git a/client/containers/Interface/Interface.js b/client/containers/Interface/Interface.js
index d75d553d..93e82cb7 100644
--- a/client/containers/Interface/Interface.js
+++ b/client/containers/Interface/Interface.js
@@ -53,7 +53,6 @@ class Interface extends Component {
}
this.props.saveInterfaceProjectId(interfaceId)
- console.log(params);
axios.get('/interface/list', params)
.then(result => {
result = result.data.data
@@ -72,13 +71,10 @@ class Interface extends Component {
const reg = /project\/(\d+)/g
const url = location.href
url.match(reg)
- console.log(url.match(reg));
- console.log(RegExp.$1);
return RegExp.$1
}
render () {
- console.log('==================');
const { interfaceData, projectMember, modalVisible } = this.props
return (
diff --git a/client/containers/ProjectGroups/GroupList/GroupList.js b/client/containers/ProjectGroups/GroupList/GroupList.js
index 8dbc7ed0..340b012b 100644
--- a/client/containers/ProjectGroups/GroupList/GroupList.js
+++ b/client/containers/ProjectGroups/GroupList/GroupList.js
@@ -64,11 +64,11 @@ export default class GroupList extends Component {
if(this.props.groupList[i].group_name === groupName){
currGroup = this.props.groupList[i];
}else{
- this.props.history.replace(`${currGroup.group_name}`);
+ this.props.history.replace(`${currGroup._id}`);
}
}
}else if(!groupName && this.props.groupList.length){
- this.props.history.push(`/group/${this.props.groupList[0].group_name}`);
+ this.props.history.push(`/group/${this.props.groupList[0]._id}`);
}
this.setState({groupList: this.props.groupList});
this.props.setCurrGroup(currGroup)
@@ -156,7 +156,7 @@ export default class GroupList extends Component {
const groupId = e.key;
const currGroup = this.props.groupList.find((group) => { return +group._id === +groupId });
this.props.setCurrGroup(currGroup);
- this.props.history.replace(`${currGroup.group_name}`);
+ this.props.history.replace(`${currGroup._id}`);
}
@autobind
diff --git a/client/containers/ProjectGroups/ProjectList/ProjectList.js b/client/containers/ProjectGroups/ProjectList/ProjectList.js
index dbb04cec..2e006fa0 100644
--- a/client/containers/ProjectGroups/ProjectList/ProjectList.js
+++ b/client/containers/ProjectGroups/ProjectList/ProjectList.js
@@ -42,7 +42,7 @@ const getColumns = (data, props) => {
return {text}
}
},{
- title: 'Mock链接',
+ title: 'Mock基本URL',
key: 'domain',
render: (item) => {
return 'http://'+ item.prd_host + item.basepath;