Skip to content

Commit

Permalink
fix(miniProgramBus): toUpperCase
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Aug 27, 2020
1 parent aca3f8e commit d50819b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/mp/miniProgramBus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const miniProgramBus = new EventBus<MiniProgramBusListeners>({
>((res, name) => {
res[name] = function (ctx) {
this.emit({
name: `current${name[0].toLocaleLowerCase()}${name.slice(1)}` as any,
name: `current${name[0].toUpperCase()}${name.slice(1)}` as any,
context: ctx,
tag: ctx.__PAGE_ID__,
})
Expand Down
1 change: 1 addition & 0 deletions src/mp/redirectPageTo.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { AnyObject } from '../types'
import { navigatePageTo } from './navigatePageTo'

/**
Expand Down

0 comments on commit d50819b

Please sign in to comment.