mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-28 18:00:15 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
1e5b30c5fd
commit
6b0732c99b
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ func InsertLocalAssets(id string, assetAbsPaths []string, isUpload bool) (succMa
|
|||
}
|
||||
|
||||
if "" != existAssetPath && !strings.HasPrefix(hash, "random_") {
|
||||
succMap[baseName] = existAssetPath
|
||||
succMap[baseName] = strings.TrimPrefix(existAssetPath, "/")
|
||||
} else {
|
||||
fName = util.AssetName(fName, ast.NewNodeID())
|
||||
writePath := filepath.Join(assetsDirPath, fName)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue