修改swagger解析报错,白名单域名默认为不限制

This commit is contained in:
暮光:城中城
2019-06-24 22:43:21 +08:00
parent f83c27882f
commit 29586f35d7
3 changed files with 130 additions and 130 deletions

View File

@@ -62,7 +62,7 @@ function createTreeViewByTag(json, keywords) {
* @returns
*/
function setRequestMethodForTag(rewriteDomainUrl, domain, source, pathObj, url, method) {
if (isEmpty(source[method])) {
if (isEmpty(source[method]) || !source[method].tags) {
return;
}
source[method].tags.forEach(function(val, index) {