mirror of
https://gitee.com/mafgwo/stackedit
synced 2024-11-16 11:42:23 +08:00
路径支持反斜杠
This commit is contained in:
parent
81612deab7
commit
81cad7ee84
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user