chore: update

This commit is contained in:
xiaoxian521
2022-12-23 18:43:40 +08:00
parent 14f1e8cc97
commit f2cf1d0af7
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>