fix: link render issue after page refreshing (#276)
* fix scroll issue in IE * add meta tag for IE browser * fix link render issue after page refreshing
This commit is contained in:
parent
69b2040571
commit
abd885e133
1 changed files with 3 additions and 1 deletions
|
|
@ -80,7 +80,9 @@ export class HashHistory extends History {
|
||||||
path = route.path + stringifyQuery(route.query)
|
path = route.path + stringifyQuery(route.query)
|
||||||
path = path.replace(/\.md(\?)|\.md$/, '$1')
|
path = path.replace(/\.md(\?)|\.md$/, '$1')
|
||||||
|
|
||||||
if (local) path = currentRoute + path
|
if (local) {
|
||||||
|
path = currentRoute.substr(0, currentRoute.indexOf('?')) + path
|
||||||
|
}
|
||||||
|
|
||||||
return cleanPath('#/' + path)
|
return cleanPath('#/' + path)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue