mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-09 05:00:30 +08:00
fix: 修复接口状态无法更新问题
This commit is contained in:
parent
a4a468068a
commit
120159a381
@ -1,3 +1,12 @@
|
||||
### v1.3.1
|
||||
|
||||
|
||||
#### Bug Fixed
|
||||
|
||||
1. 修复接口状态无法更新问题
|
||||
|
||||
|
||||
|
||||
### v1.3.0
|
||||
|
||||
#### Feature
|
||||
|
@ -26,6 +26,7 @@ class interfaceController extends baseController {
|
||||
|
||||
const addAndUpCommonField = {
|
||||
'desc': 'string',
|
||||
'status': 'string',
|
||||
req_query: [{
|
||||
name: 'string',
|
||||
value: 'string',
|
||||
@ -344,6 +345,7 @@ class interfaceController extends baseController {
|
||||
|
||||
async up(ctx) {
|
||||
let params = ctx.params;
|
||||
console.log('params', params.status);
|
||||
|
||||
if (!_.isUndefined(params.method)) {
|
||||
params.method = params.method || 'GET';
|
||||
|
Loading…
Reference in New Issue
Block a user