chore: update

This commit is contained in:
xiaoxian521
2022-12-23 18:34:16 +08:00
parent 3365b99d3d
commit 590d6bf607
3 changed files with 99 additions and 98 deletions

View File

@@ -144,7 +144,8 @@ function resolvePath(routePath) {
if (httpReg.test(routePath) || httpReg.test(props.basePath)) {
return routePath || props.basePath;
} else {
return path.resolve(props.basePath, routePath);
// 使用path.posix.resolve替代path.resolve 避免windows环境下使用electron出现盘符问题
return path.posix.resolve(props.basePath, routePath);
}
}
</script>