Skip to content

Commit

Permalink
added in onLaunch
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy committed Jan 13, 2018
1 parent 64ae439 commit 5334c8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/wepy/src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export default {
APP_EVENT.forEach((v) => {
config[v] = (...args) => {
let rst;
!app.$wxapp && (app.$wxapp = getApp());
app[v] && (rst = app[v].apply(app, args));
return rst;
};
Expand Down

1 comment on commit 5334c8e

@Gcaufy
Copy link
Collaborator Author

@Gcaufy Gcaufy commented on 5334c8e Jan 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.