feat: 更新主分支

This commit is contained in:
xiaoxian521
2021-11-13 14:50:58 +08:00
parent 668dcca2f9
commit 0f3d82a9b1
5 changed files with 81 additions and 2 deletions

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>