feat: support query string for the search, fixed #156
This commit is contained in:
parent
6ed25cebe5
commit
da75d70dee
3 changed files with 31 additions and 25 deletions
|
|
@ -12,7 +12,7 @@ function replaceHash (path) {
|
|||
const replaceSlug = cached(path => {
|
||||
return path
|
||||
.replace('#', '?id=')
|
||||
.replace(/\?(\w+)=/g, (_, slug) => slug === 'id' ? '?id=' : `&${slug}=`)
|
||||
// .replace(/\?(\w+)=/g, (_, slug) => slug === 'id' ? '?id=' : `&${slug}=`)
|
||||
})
|
||||
/**
|
||||
* Normalize the current url
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue