fix[Sidebar]: fixed external link bug (#1870)

This commit is contained in:
花裤衩 2019-04-10 10:12:16 +08:00 committed by GitHub
parent dbee6ff707
commit 9cba45e971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,9 @@ export default {
if (isExternal(routePath)) { if (isExternal(routePath)) {
return routePath return routePath
} }
if (isExternal(this.basePath)) {
return this.basePath
}
return path.resolve(this.basePath, routePath) return path.resolve(this.basePath, routePath)
}, },