mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-06 12:45:22 +08:00
feat: 接口集合
This commit is contained in:
parent
6391618a39
commit
76df380a6c
@ -1,4 +1,11 @@
|
||||
import React from 'react'
|
||||
export default () => {
|
||||
return <h1>hello colContent</h1>
|
||||
}
|
||||
import React, { Component } from 'react'
|
||||
|
||||
export default class InterfaceColContent extends Component {
|
||||
constructor(props) {
|
||||
super(props)
|
||||
}
|
||||
|
||||
render() {
|
||||
return <h1>hello colContent</h1>
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,10 @@
|
||||
import React from 'react'
|
||||
export default () => {
|
||||
return <h1>hello colContent</h1>
|
||||
}
|
||||
import React, { Component } from 'react'
|
||||
export default class InterfaceColMenu extends Component {
|
||||
constructor(props) {
|
||||
super(props)
|
||||
}
|
||||
|
||||
render() {
|
||||
return <h1>hello colContent</h1>
|
||||
}
|
||||
}
|
||||
|
@ -37,11 +37,10 @@ export default class Project extends Component {
|
||||
|
||||
render () {
|
||||
const { match } = this.props;
|
||||
console.log('project')
|
||||
return (
|
||||
<div>
|
||||
<Subnav
|
||||
default={'接口'}
|
||||
default={'动态'}
|
||||
data={[{
|
||||
name: '接口',
|
||||
path: `/project/${match.params.id}/interface`
|
||||
@ -53,7 +52,7 @@ export default class Project extends Component {
|
||||
path: `/project/${match.params.id}/activity`
|
||||
}]}/>
|
||||
<Switch>
|
||||
<Redirect exact from ="/project/:id" to={`/project/${match.params.id}/activity`}/>
|
||||
<Redirect exact from="/project/:id" to={`/project/${match.params.id}/activity`}/>
|
||||
<Route path="/project/:id/activity" component={Activity} />
|
||||
<Route path="/project/:id/interface" component={Interface} />
|
||||
<Route path="/project/:id/setting" component={Setting} />
|
||||
|
Loading…
Reference in New Issue
Block a user