Showing
1 changed file
with
1 additions
and
5 deletions
@@ -178,11 +178,7 @@ const yoho = { | @@ -178,11 +178,7 @@ const yoho = { | ||
178 | * @param fail 调用失败的回调方法 | 178 | * @param fail 调用失败的回调方法 |
179 | */ | 179 | */ |
180 | goNewPage(args, success, fail) { | 180 | goNewPage(args, success, fail) { |
181 | - if (this.isApp) { | ||
182 | - if (!window.yohoInterface) { | ||
183 | - return false; | ||
184 | - } | ||
185 | - | 181 | + if (this.isApp && window.yohoInterface) { |
186 | window.yohoInterface.triggerEvent(success || nullFun, fail || nullFun, { | 182 | window.yohoInterface.triggerEvent(success || nullFun, fail || nullFun, { |
187 | method: 'go.newPage', | 183 | method: 'go.newPage', |
188 | arguments: args | 184 | arguments: args |
-
Please register or login to post a comment