Skip to content

Commit

Permalink
fix[Sidebar]: fixed external link bug (PanJiaChen#1870)
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen authored and illidanet committed Apr 12, 2019
1 parent eaf1a89 commit 8f5b079
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/layout/components/Sidebar/SidebarItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ export default {
if (isExternal(routePath)) {
return routePath
}
if (isExternal(this.basePath)) {
return this.basePath
}
return path.resolve(this.basePath, routePath)
},
Expand Down

0 comments on commit 8f5b079

Please sign in to comment.