diff --git a/src/layout/components/sidebar/sidebarItem.vue b/src/layout/components/sidebar/sidebarItem.vue index 960b52ec4..2f65926df 100644 --- a/src/layout/components/sidebar/sidebarItem.vue +++ b/src/layout/components/sidebar/sidebarItem.vue @@ -68,7 +68,12 @@ function hasOneShowingChild( } function resolvePath(routePath) { - return path.resolve(props.basePath, routePath); + const httpReg = /^http(s?):\/\//; + if (httpReg.test(routePath)) { + return props.basePath + "/" + routePath; + } else { + return path.resolve(props.basePath, routePath); + } }