Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JeeSpringCloud
Commits
c5c2c4e8
Commit
c5c2c4e8
authored
Oct 23, 2018
by
HuangBingGui
Browse files
no commit message
parent
a2bbaf00
Changes
1
Show whitespace changes
Inline
Side-by-side
JeeSpringCloud/src/main/webapp/jeeSpringStatic/dist/js/app_iframe.js
View file @
c5c2c4e8
...
...
@@ -2492,12 +2492,15 @@ $(function () {
})
$(document).on('click','.sidebar-menu a', function () {
var
href
=
$
(
this
).
attr
(
"
href
"
);
var
title
=
$
(
this
).
attr
(
"
title
"
);
var
target
=
$
(
this
).
attr
(
"
target
"
);
if
(
!
href
)
return
false
;
if
(
href
.
indexOf
(
"
javascript
"
)
>=
0
)
return
false
;
if
(
title
.
indexOf
(
"
演示版不开放
"
)
>
0
)
return
false
;
var href = $(this).attr("href");
var title = $(this).attr("title");
var target = $(this).attr("target");
if (!href) return false;
if (href.indexOf("javascript") >= 0) return false;
if ($("title").html().indexOf("演示版") >= 0 && href.indexOf("swagger-ui.html") >= 0) {
$(this).find("span").html("接口文档(演示版不开放)");
return false;
}
if(target=="_blank") {
window.open(href);
return false;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment