Skip to content

Commit a85533a

Browse files
authored
Update index.js
1 parent 6dec295 commit a85533a

File tree

1 file changed

+8
-8
lines changed
  • Bundle/Resources/public/strategy

1 file changed

+8
-8
lines changed

Bundle/Resources/public/strategy/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ function resultPreprocess(that, result, go_url, resultPreprocessFunction)
5454
that.$message.success(result.msg);
5555
}
5656
}
57-
58-
if(resultPreprocessFunction != undefined && resultPreprocessFunction != ''){
59-
resultPreprocessFunction(that, result);
57+
58+
if(result.hasOwnProperty('data')){
59+
if(result['data'].hasOwnProperty('go_url')){
60+
goUrlPreprocess(result.data.go_url);return;
61+
}
6062
}
6163

6264
if(go_url != undefined && result.code == 0){
6365
goUrlPreprocess(go_url);return;
6466
}
6567

66-
if(result.hasOwnProperty('data')){
67-
if(result['data'].hasOwnProperty('go_url')){
68-
goUrlPreprocess(result.data.go_url);return;
69-
}
68+
if(resultPreprocessFunction != undefined && resultPreprocessFunction != ''){
69+
resultPreprocessFunction(that, result);
7070
}
7171
}
7272

@@ -94,4 +94,4 @@ function goUrlPreprocess(go_url) {
9494
function urlPreprocess(url) {
9595
var reg = new RegExp("amp;","g");
9696
return url.replace(reg, '');
97-
}
97+
}

0 commit comments

Comments
 (0)