docs(README): add search
This commit is contained in:
parent
eb5ff3e987
commit
e1da2f8a84
8 changed files with 99 additions and 17 deletions
|
|
@ -89,7 +89,7 @@ export function getRoute () {
|
|||
const loc = window.location
|
||||
if (cacheHash === loc.hash && !isNil(cacheRoute)) return cacheRoute
|
||||
|
||||
let route = loc.hash.match(/^#\/([^#]+)/)
|
||||
let route = loc.hash.replace(/%23/g, '#').match(/^#\/([^#]+)/)
|
||||
|
||||
if (route && route.length === 2) {
|
||||
route = route[1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue