Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hzwy23 committed May 18, 2017
1 parent 16a6881 commit 82b65db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions static/js/utils.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,15 @@ var Hutils = {
// 资源的id
var data_id = $(e).attr("data-id");

// 资源的名称
var name = $(e).find("div:last").html();

if ($(e).attr("data-openType") == "1") {
window.open(url,"API文档")
window.open(url,name)
return
}
NProgress.start();

// 资源的名称
var name = $(e).find("div:last").html();

// 遍历整个tab栏目,查找指定id的资源是否打开,
// 如果该资源已经打开,则直接切换到该资源,无需从后台获取内容
// 如果该资源没有打开,则将flag为false,从后台获取资源内容
Expand Down

0 comments on commit 82b65db

Please sign in to comment.