This commit is contained in:
hb0730
2021-11-12 12:39:08 +08:00
committed by GitHub
parent b702703472
commit 10e8b296e3

View File

@@ -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);
}
}
</script>