mirror of
https://github.com/YMFE/yapi.git
synced 2025-02-23 13:59:28 +08:00
Merge branch 'dev' of gitlab.corp.qunar.com:mfe/yapi into dev
This commit is contained in:
commit
a85e53e072
@ -115,10 +115,12 @@ class advMockController extends baseController{
|
||||
ip_enable: data.ip_enable
|
||||
}
|
||||
|
||||
if(data.params && typeof data.params === 'object'){
|
||||
if(data.params && typeof data.params === 'object' && Object.keys(data.params).length >0){
|
||||
for(let i in data.params){
|
||||
findRepeatParams['params.' + i] = data.params[i];
|
||||
}
|
||||
}else{
|
||||
findRepeatParams.params = null;
|
||||
}
|
||||
|
||||
if(data.ip_enable){
|
||||
|
Loading…
Reference in New Issue
Block a user