fix[Sidebar]: fixed external link bug

This commit is contained in:
Pan 2019-04-10 10:10:58 +08:00
parent dbee6ff707
commit f822731789
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)
}, },