From 81cad7ee84cd672bf504de3daf750ec7d48f12c2 Mon Sep 17 00:00:00 2001 From: "xiaoqi.cxq" Date: Fri, 30 Jun 2023 11:28:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E5=BE=84=E6=94=AF=E6=8C=81=E5=8F=8D?= =?UTF-8?q?=E6=96=9C=E6=9D=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/utils.js b/src/services/utils.js index 71bfb241..d171432c 100644 --- a/src/services/utils.js +++ b/src/services/utils.js @@ -400,7 +400,8 @@ export default { return path || ''; }, // 根据当前绝对路径 与 文件路径计算出文件绝对路径 - getAbsoluteFilePath(currDirNode, filePath) { + getAbsoluteFilePath(currDirNode, originFilePath) { + const filePath = originFilePath && originFilePath.replaceAll('\\', '/'); const currAbsolutePath = this.getAbsoluteDir(currDirNode); // "/"开头说明已经是绝对路径 if (filePath.indexOf('/') === 0) {