Skip to content

Commit 1bd8f6a

Browse files
committed
Merge branch 'master' of github.com:phpzlc/admin
2 parents 15c1f11 + 572dd8b commit 1bd8f6a

File tree

1 file changed

+3
-2
lines changed
  • Bundle/Resources/public/strategy

1 file changed

+3
-2
lines changed

Bundle/Resources/public/strategy/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,15 @@ function resultPreprocess(that, result, go_url, resultPreprocessFunction)
7171
}
7272

7373
function goUrlPreprocess(go_url) {
74+
7475
//如果是数组,则在新窗口打开, gp_url[1]等同于target="_blank
7576
if(go_url instanceof Array){
76-
window.open(go_url[0]);
77+
window.open(urlPreprocess(go_url[0]));
7778
}else{
7879
if(go_url == ''){
7980
window.location.reload();
8081
}else {
81-
window.location.href = go_url;
82+
window.location.href = urlPreprocess(go_url);
8283
}
8384
}
8485
}

0 commit comments

Comments
 (0)