mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-12-02 03:37:57 +08:00
fix: windows 问题
This commit is contained in:
parent
a535345e0a
commit
5724cbd8f3
@ -40,6 +40,8 @@ function getPkgPath(pkgName) {
|
||||
}
|
||||
|
||||
function genShortPath(filePath) {
|
||||
// 处理 windows 的路径
|
||||
filePath = filePath.replace(/\\/g, '/');
|
||||
const codePath = filePath.split(`/${SOURCE_DIR}/`)[1];
|
||||
return `${SOURCE_DIR}/${codePath}`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user