chore: update

This commit is contained in:
xiaoxian521
2022-12-23 18:41:27 +08:00
parent 799643a283
commit c79862a6c8
3 changed files with 91 additions and 90 deletions

View File

@@ -143,7 +143,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>