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

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

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

Loading…
Cancel
Save