mirror of
https://github.com/YMFE/yapi.git
synced 2025-04-06 15:00:26 +08:00
feat: 接口列表支持路径查询
This commit is contained in:
parent
2b8c9c6de1
commit
4647fae137
22
CHANGELOG.md
22
CHANGELOG.md
@ -1,13 +1,25 @@
|
||||
### v1.3.11
|
||||
* 修复 v1.3.10 websocket 连接问题
|
||||
* 修复运行报错问题
|
||||
* 修复数据导入 har 文件问题
|
||||
### v1.3.12
|
||||
|
||||
#### Feature
|
||||
|
||||
* 接口列表支持路径查询
|
||||
|
||||
#### Bug Fixed
|
||||
|
||||
* 项目中访客权限的账号可以 增、删、改接口中高级mock的设置
|
||||
* 高级Mock 中的响应时间值无法保存(实际提示为:保存成功)
|
||||
* 分组为空时添加接口
|
||||
* 分类为空时添加接口
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### v1.3.11
|
||||
* 修复 v1.3.10 websocket 连接问题
|
||||
* 修复运行报错问题
|
||||
* 修复数据导入 har 文件问题
|
||||
|
||||
|
||||
|
||||
### v1.3.9
|
||||
#### Feature
|
||||
|
@ -447,7 +447,7 @@ export default class InterfaceColMenu extends Component {
|
||||
let interfaceFilter = false;
|
||||
if (item.name.indexOf(this.state.filterValue) === -1) {
|
||||
item.caseList = item.caseList.filter(inter => {
|
||||
|
||||
|
||||
if (inter.casename.indexOf(this.state.filterValue) === -1) {
|
||||
return false;
|
||||
}
|
||||
|
@ -471,7 +471,8 @@ class InterfaceMenu extends Component {
|
||||
let interfaceFilter = false;
|
||||
if (item.name.indexOf(this.state.filter) === -1) {
|
||||
item.list = item.list.filter(inter => {
|
||||
if (inter.title.indexOf(this.state.filter) === -1 && inter.path.indexOf(this.state.filter)) {
|
||||
|
||||
if (inter.title.indexOf(this.state.filter) === -1 && inter.path.indexOf(this.state.filter)===-1) {
|
||||
return false;
|
||||
}
|
||||
//arr.push('cat_' + inter.catid)
|
||||
@ -479,6 +480,7 @@ class InterfaceMenu extends Component {
|
||||
return true;
|
||||
|
||||
})
|
||||
|
||||
arr.push('cat_' + item._id)
|
||||
return interfaceFilter === true
|
||||
}
|
||||
|
@ -363,10 +363,6 @@ class View extends Component {
|
||||
|
||||
<div style={{ display: this.props.curData.method && HTTP_METHOD[this.props.curData.method.toUpperCase()].request_body ? '' : 'none' }}>
|
||||
<h3 style={{ display: bodyShow ? '' : 'none' }} className="col-title">Body:</h3>
|
||||
{/* {aceEditor}
|
||||
{
|
||||
|
||||
} */}
|
||||
{
|
||||
this.props.curData.req_body_type ==='form' ?
|
||||
this.req_body_form(this.props.curData.req_body_type, this.props.curData.req_body_form)
|
||||
|
Loading…
x
Reference in New Issue
Block a user