路径支持反斜杠
This commit is contained in:
parent
81612deab7
commit
81cad7ee84
@ -400,7 +400,8 @@ export default {
|
|||||||
return path || '';
|
return path || '';
|
||||||
},
|
},
|
||||||
// 根据当前绝对路径 与 文件路径计算出文件绝对路径
|
// 根据当前绝对路径 与 文件路径计算出文件绝对路径
|
||||||
getAbsoluteFilePath(currDirNode, filePath) {
|
getAbsoluteFilePath(currDirNode, originFilePath) {
|
||||||
|
const filePath = originFilePath && originFilePath.replaceAll('\\', '/');
|
||||||
const currAbsolutePath = this.getAbsoluteDir(currDirNode);
|
const currAbsolutePath = this.getAbsoluteDir(currDirNode);
|
||||||
// "/"开头说明已经是绝对路径
|
// "/"开头说明已经是绝对路径
|
||||||
if (filePath.indexOf('/') === 0) {
|
if (filePath.indexOf('/') === 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user