Skip to content

Commit

Permalink
fix(router): browser 模式 search 参数问题 fix #11004
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Jan 4, 2022
1 parent 005aa54 commit e2521d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-router/src/router/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default class PageHandler {

get search () {
let search = '?'
if (this.routerMode) {
if (this.routerMode === 'hash') {
const idx = location.hash.indexOf('?')
if (idx > -1) {
search = location.hash.slice(idx)
Expand Down

0 comments on commit e2521d4

Please sign in to comment.