Skip to content

Commit

Permalink
fix(patchMiniProgram): 页面展示时更新当前页面 ID
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Aug 28, 2020
1 parent c58b824 commit 033a818
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mp/patchMiniProgram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function patchPageOptions(

const onShow = pageOptions.onShow
pageOptions.onShow = function () {
patchMiniProgram.__CURRENT_PAGE_ID__ = (this as any).__PAGE_ID__
miniProgramBus.emit({
name: 'currentPageShow',
context: this,
Expand Down

0 comments on commit 033a818

Please sign in to comment.