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

Commit

Permalink
fix(toutiao): 修复飞书开发者工具运行报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck committed Aug 15, 2020
1 parent 4f8d507 commit 00db2bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/remax-runtime/src/createAppConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ export default function createAppConfig(this: any, App: any) {
},

_mount(pageInstance: any) {
/**
* 飞书开发者工具的问题,这里的 this 跟 getApp 拿到的不是同一个实例
*/
if (!this._container.context) {
this._container.context = this;
}
this._pages.push(pageInstance);
this._render();
},
Expand Down

1 comment on commit 00db2bf

@vercel
Copy link

@vercel vercel bot commented on 00db2bf Aug 15, 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.