docs(ssr): add ssr

This commit is contained in:
qingwei.li 2017-05-30 11:54:37 +08:00
commit 8595c99c0b
No known key found for this signature in database
GPG key ID: B6DDC2F7AE80B2F4
8 changed files with 375 additions and 13 deletions

View file

@ -51,11 +51,11 @@ export class HTML5History extends History {
path = path.slice(0, queryIndex)
}
const base = getPath(location.origin, this.getBasePath())
const base = getPath(location.origin)
const baseIndex = path.indexOf(base)
if (baseIndex > -1) {
path = path.slice(baseIndex + base.length - 1)
path = path.slice(baseIndex + base.length)
}
return {