Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

groupname的使用简单修改可以支持 #27

Open
cokestewpotato opened this issue Aug 2, 2018 · 1 comment
Open

groupname的使用简单修改可以支持 #27

cokestewpotato opened this issue Aug 2, 2018 · 1 comment

Comments

@cokestewpotato
Copy link

//从URL获取参数
function getQueryString (name) {
return decodeURIComponent((new RegExp('[?|&]'+name+'='+'([^&;]+?)(&|#|;|$)').exec(location.href)||[, ''])[1].replace(/+/g, '%20')) || null
}

var url = "v2/api-docs";
//获取group的值
if(getQueryString("group")) {
url += "?group=" + getQueryString("group");
}

修改docs.js中的ajax地址为上面的url,不知道管理有这样尝试过没

@caspar-chen
Copy link
Owner

你可以提交 pull request , 贡献你的代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants