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

View File

@@ -68,8 +68,13 @@ 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>
<template> <template>