From f822731789439fc2b8da95f85f19d921dbc64700 Mon Sep 17 00:00:00 2001 From: Pan Date: Wed, 10 Apr 2019 10:10:58 +0800 Subject: [PATCH] fix[Sidebar]: fixed external link bug --- src/layout/components/Sidebar/SidebarItem.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue index 8c9c4328..b4422cf8 100644 --- a/src/layout/components/Sidebar/SidebarItem.vue +++ b/src/layout/components/Sidebar/SidebarItem.vue @@ -86,6 +86,9 @@ export default { if (isExternal(routePath)) { return routePath } + if (isExternal(this.basePath)) { + return this.basePath + } return path.resolve(this.basePath, routePath) },