mirror of
https://github.com/YMFE/yapi.git
synced 2025-03-07 14:16:52 +08:00
fix: env
This commit is contained in:
parent
1f5b0e58db
commit
574376f2fd
@ -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};
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
|
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user