mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
fix: 解决view页面的冲突
This commit is contained in:
commit
f91db88593
@ -1,3 +1,4 @@
|
||||
<<<<<<< HEAD
|
||||
import '../interface.scss'
|
||||
import React, { Component } from 'react'
|
||||
import { connect } from 'react-redux'
|
||||
@ -83,3 +84,32 @@ View.defaultProps = {
|
||||
}
|
||||
|
||||
export default View
|
||||
=======
|
||||
import React,{Component} from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
@connect(
|
||||
state => {
|
||||
return {
|
||||
curdata: state.inter.curdata
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
class InterfaceView extends Component{
|
||||
static propTypes = {
|
||||
curdata: PropTypes.object
|
||||
}
|
||||
|
||||
render(){
|
||||
console.log(this.props.curdata)
|
||||
let view = JSON.stringify(this.props.curdata, null, " ");
|
||||
return <pre>
|
||||
{view}
|
||||
</pre>
|
||||
}
|
||||
}
|
||||
|
||||
export default InterfaceView;
|
||||
>>>>>>> fe76f992f0b0251fce75b3fb564ace43565ab8b4
|
||||
|
@ -3,7 +3,7 @@
|
||||
min-height: 5rem;
|
||||
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.20);
|
||||
background: #FFF;
|
||||
border-radius:4px;
|
||||
border-radius:5px;
|
||||
margin: 3px;
|
||||
.ant-tabs-bar{
|
||||
border-bottom: none;
|
||||
@ -41,9 +41,10 @@
|
||||
width: 40px;
|
||||
}
|
||||
|
||||
.btn-http-get{
|
||||
background-color: #00a854;
|
||||
border-color: #00a854
|
||||
.interface-delete-icon{
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
top: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -53,7 +54,7 @@
|
||||
min-height: 5rem;
|
||||
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.20);
|
||||
background: #FFF;
|
||||
border-radius:4px;
|
||||
border-radius:5px;
|
||||
.interface-content{
|
||||
.ant-tabs-nav{
|
||||
width:100%
|
||||
|
@ -12,7 +12,7 @@ import { Setting } from './Setting/Setting.js'
|
||||
@connect(
|
||||
state => {
|
||||
return {
|
||||
curProject: state.project.curProject
|
||||
curProject: state.project.currProject
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user