Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix(wechat): 增加 getRealtimeLogManager api
Browse files Browse the repository at this point in the history
fix #884
  • Loading branch information
Darmody committed May 8, 2020
1 parent e7a7556 commit 67db014
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1801,6 +1801,14 @@ function createAppConfig(App) {
// 微信
onPageNotFound: function onPageNotFound(options) {
return this.callLifecycle(_lifecycle__WEBPACK_IMPORTED_MODULE_5__["AppLifecycle"].pageNotFound, options);
},
// 微信
onUnhandledRejection: function onUnhandledRejection(options) {
return this.callLifecycle(_lifecycle__WEBPACK_IMPORTED_MODULE_5__["AppLifecycle"].unhandledRejection, options);
},
// 微信
onThemeChange: function onThemeChange(options) {
return this.callLifecycle(_lifecycle__WEBPACK_IMPORTED_MODULE_5__["AppLifecycle"].themeChange, options);
}
};
Object(_lifecycle__WEBPACK_IMPORTED_MODULE_5__["appEvents"])().forEach(function (eventName) {
Expand Down Expand Up @@ -2010,6 +2018,8 @@ var AppLifecycle;
AppLifecycle["error"] = "error";
AppLifecycle["shareAppMessage"] = "shareAppMessage";
AppLifecycle["pageNotFound"] = "pageNotFound";
AppLifecycle["unhandledRejection"] = "unhandledRejection";
AppLifecycle["themeChange"] = "themeChange";
})(AppLifecycle || (AppLifecycle = {}));

function lifeCycleName(name) {
Expand Down
1 change: 1 addition & 0 deletions packages/remax-wechat/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,4 @@ export const createInterstitialAd = wx.createInterstitialAd;
export const cloud = wx.cloud;
export const requestSubscribeMessage = promisify(wx.requestSubscribeMessage);
export const hideHomeButton = promisify(wx.hideHomeButton);
export const getRealtimeLogManager = wx.getRealtimeLogManager;

1 comment on commit 67db014

@vercel
Copy link

@vercel vercel bot commented on 67db014 May 8, 2020

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.