This commit is contained in:
hb0730 2021-11-12 12:39:08 +08:00 committed by GitHub
parent b702703472
commit 10e8b296e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,12 @@ function hasOneShowingChild(
} }
function resolvePath(routePath) { function resolvePath(routePath) {
const httpReg = /^http(s?):\/\//;
if (httpReg.test(routePath)) {
return props.basePath + "/" + routePath;
} else {
return path.resolve(props.basePath, routePath); return path.resolve(props.basePath, routePath);
}
} }
</script> </script>