pull/76/head
Bosn 7 years ago
parent 79e6a802c6
commit 219bd45ae0

@ -18,13 +18,13 @@ class Importer extends Component {
rmodal: PropTypes.instanceOf(Component),
handleAddMemoryProperties: PropTypes.func.isRequired
}
constructor(props) {
constructor (props) {
super(props)
this.state = {
result: JSON.stringify(mockResult(), null, 2)
}
}
render() {
render () {
const { rmodal } = this.context
return (
<section className='Importer'>
@ -51,7 +51,7 @@ class Importer extends Component {
</section>
)
}
componentDidUpdate() {
componentDidUpdate () {
this.context.rmodal.reposition()
}
// DONE 2.1
@ -92,16 +92,16 @@ class Importer extends Component {
value,
descripton: ''
}, {
creator: auth.id,
repositoryId: repository.id,
moduleId: mod.id,
interfaceId: itf.id,
scope,
parentId: parent.id
}, {
memory: true,
id: _.uniqueId('memory-')
})
creator: auth.id,
repositoryId: repository.id,
moduleId: mod.id,
interfaceId: itf.id,
scope,
parentId: parent.id
}, {
memory: true,
id: _.uniqueId('memory-')
})
memoryProperties.push(property)
if (schema.properties) {

@ -123,7 +123,7 @@ class InterfaceSummary extends Component {
{itf.method}
</li>
<li><span className='label'>状态码</span>
{itf.status}
{itf.status}
</li>
{itf.description &&
<li><span className='label'>简介</span>{itf.description}</li>

@ -142,4 +142,4 @@ export default {
sort: (list) => {
return treeToArray(arrayToTree(list))
}
}
}

Loading…
Cancel
Save