This commit is contained in:
zwjamnsss 2017-08-22 10:02:50 +08:00
parent 1f5b0e58db
commit 574376f2fd
4 changed files with 9 additions and 6 deletions

View File

@ -83,7 +83,6 @@ export default class Run extends Component {
protocol = '',
env = []
} = data;
console.log('error', basepath, url)
const pathname = (basepath + url).replace(/\/+/g, '/');
const domains = {prd: protocol + '://' + prd_host};

View File

@ -79,8 +79,8 @@ export default class InterfaceCaseContent extends Component {
}
render() {
const { currCase, currProject } = this.props;
const data = Object.assign({}, currCase, currProject);
const { currCase } = this.props;
const data = currCase;
return (
<div>
<h1 style={{marginLeft: 8}}>{currCase.casename}</h1>

View File

@ -15,7 +15,9 @@ class interfaceCase extends baseModel {
project_id: { type: Number, required: true },
add_time: Number,
up_time: Number,
env: { type: String },
env: [{
name: String, domain: String
}],
domain: { type: String },
path: { type: String },
method: { type: String },
@ -98,4 +100,4 @@ class interfaceCase extends baseModel {
}
}
module.exports = interfaceCase;
module.exports = interfaceCase;

View File

@ -54,7 +54,9 @@ var interfaceCase = function (_baseModel) {
project_id: { type: Number, required: true },
add_time: Number,
up_time: Number,
env: { type: String },
env: [{
name: String, domain: String
}],
domain: { type: String },
path: { type: String },
method: { type: String },