Commit c5c2c4e8 authored by HuangBingGui's avatar HuangBingGui
Browse files

no commit message

parent a2bbaf00
...@@ -2492,12 +2492,15 @@ $(function () { ...@@ -2492,12 +2492,15 @@ $(function () {
}) })
$(document).on('click','.sidebar-menu a', function () { $(document).on('click','.sidebar-menu a', function () {
var href=$(this).attr("href"); var href = $(this).attr("href");
var title=$(this).attr("title"); var title = $(this).attr("title");
var target=$(this).attr("target"); var target = $(this).attr("target");
if(!href) return false; if (!href) return false;
if(href.indexOf("javascript")>=0) return false; if (href.indexOf("javascript") >= 0) return false;
if(title.indexOf("演示版不开放")>0) return false; if ($("title").html().indexOf("演示版") >= 0 && href.indexOf("swagger-ui.html") >= 0) {
$(this).find("span").html("接口文档(演示版不开放)");
return false;
}
if(target=="_blank") { if(target=="_blank") {
window.open(href); window.open(href);
return false; return false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment