mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-01 02:10:15 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
6b0732c99b
commit
398ae6fb23
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ func HandleAssetsChangeEvent(assetAbsPath string) {
|
|||
logging.LogErrorf("calc asset [%s] hash failed: %s", assetAbsPath, err)
|
||||
} else {
|
||||
p := strings.TrimPrefix(assetAbsPath, util.DataDir)
|
||||
p = filepath.ToSlash(p)
|
||||
p = strings.TrimPrefix(filepath.ToSlash(p), "/")
|
||||
cache.SetAssetHash(hash, p)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue