mirror of
https://github.com/YMFE/yapi.git
synced 2025-02-23 13:59:28 +08:00
feat: menu
This commit is contained in:
parent
ac0947aa88
commit
47a78e8c30
@ -1,7 +1,7 @@
|
||||
import React, { Component } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { Row, Col, Tabs } from 'antd';
|
||||
import { Route, Switch, Redirect } from 'react-router-dom';
|
||||
import { Route, Switch } from 'react-router-dom';
|
||||
|
||||
import './interface.scss'
|
||||
|
||||
@ -50,7 +50,7 @@ class Interface extends Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { action, id } = this.props.match.params;
|
||||
const { action } = this.props.match.params;
|
||||
return <div className="web-content g-row" style={{ marginBottom: "15px" }}>
|
||||
<Row gutter={16} >
|
||||
<Col span={6}>
|
||||
@ -70,7 +70,7 @@ class Interface extends Component {
|
||||
<Col span={18} >
|
||||
<div className="right-content">
|
||||
<Switch>
|
||||
<Redirect exact from='/project/:id/interface/:action' to={'/project/' + id + '/interface/' + action + '/0'} />
|
||||
<Route exact path="/project/:id/interface/:action" component={InterfaceRoute} />
|
||||
<Route path="/project/:id/interface/:action/:actionId" component={InterfaceRoute} />
|
||||
</Switch>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user