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:
LaySent 2017-10-12 22:46:48 +08:00 committed by qingwei.li
parent 69b2040571
commit abd885e133

View File

@ -80,7 +80,9 @@ export class HashHistory extends History {
path = route.path + stringifyQuery(route.query)
path = path.replace(/\.md(\?)|\.md$/, '$1')
if (local) path = currentRoute + path
if (local) {
path = currentRoute.substr(0, currentRoute.indexOf('?')) + path
}
return cleanPath('#/' + path)
}