Skip to content

Commit

Permalink
fix: preChar
Browse files Browse the repository at this point in the history
  • Loading branch information
baozouai committed Sep 7, 2023
1 parent 3fb7daf commit c31959f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -33,7 +33,8 @@
"prepublishOnly": "npm run clean && npm run build",
"release": "npm publish",
"prepare": "husky install",
"play": "pnpm dev & pnpm -C playgrounds/react dev:weapp"
"play": "pnpm dev & pnpm -C playgrounds/react dev:weapp",
"play:h5": "pnpm dev & pnpm -C playgrounds/react dev:h5"
},
"peerDependencies": {
"vite": "^2.9.0 || ^3.0.0 || ^4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/history.ts
Expand Up @@ -88,7 +88,7 @@ export class History {
const includeQuestionMark = option.url.includes('?')
const preChar = includeQuestionMark ? '&' : '?'

option.url += `${preChar}&${urlEncodeStr}`
option.url += `${preChar}${urlEncodeStr}`
}
const [path, ...res] = option.url.split('?')

Expand Down

0 comments on commit c31959f

Please sign in to comment.