mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 00:27:02 +00:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user