Skip to content

Commit 9cba45e

Browse files
authored
fix[Sidebar]: fixed external link bug (PanJiaChen#1870)
1 parent dbee6ff commit 9cba45e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/layout/components/Sidebar/SidebarItem.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ export default {
8686
if (isExternal(routePath)) {
8787
return routePath
8888
}
89+
if (isExternal(this.basePath)) {
90+
return this.basePath
91+
}
8992
return path.resolve(this.basePath, routePath)
9093
},
9194

0 commit comments

Comments
 (0)